Aller au contenu

Photo

[Solved] Ambient Behavior, Guard patroling some waypoints


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Apolyon6k

Apolyon6k
  • Members
  • 175 messages
I searched the forums but could not find the right answer.

I want a guard patrol some waypoints,
AMBIENT_SYSTEM_STATE 
is set to 1,
AMBIENT_MOVE_PATTERN 
is set to 2,
AMBIENT_MOVE_PREFIX
i don't understand really but it is set to ap_old_templar (the creature tag is "old_templar").
AMBIENT_ANIM_PATTERN
is set to 5 (guard patroling)
all parameters like the wiki suggested.

Problem is that he walks to the first waypoint and stops there never moving to the next. the waypoints are named ap_old_templar_01 - ap_old_templar_15.

Modifié par Apolyon6k, 01 décembre 2010 - 12:30 .


#2
Sunjammer

Sunjammer
  • Members
  • 926 messages

Apolyon6k wrote...

AMBIENT_ANIM_PATTERN
is set to 5 (guard patroling)

The first test I would try is to remove the AMBIENT_ANIM_PATTERN variable and follow your templar as he patrols. This ensures that all the waypoints can be found. If this doesn't work either you haven't exported the area since adding/retagging the waypoints or your naming convention is messed up.

The second test I would try is to set the AMBIENT_ANIM_PATTERN to 35 (rummaging_1). This is the one I use for testing because I know it works with move whereas some of the others seem a bit flaky (which means I haven't tested them all thoroughly enough yet). Now your templar should walk to each waypoint, kneel, rummage about, stand and continue the patrol.

If both these tests work I would set the AMBIENT_ANIM_PATTERN back to 5 again. If this still doesn't work then the issue lies with this pattern.

Incidentally you don't need to set the AMBIENT_MOVE_PREFIX as the default ap_<tag> fits the naming convention you used on the waypoints, i.e. ap_<tag>_<number>. The ambient system replaces the <tag>placeholder with the creature's actual tag a runtime so by explicitly setting the variable to ap_old_templar you are simply doing what the system does automatically.

Modifié par Sunjammer, 30 novembre 2010 - 07:27 .


#3
Apolyon6k

Apolyon6k
  • Members
  • 175 messages
it was the AMBIENT_ANIM_PATTERN 5 that was the problem and i changed the prefix.
rummaging_1 is nice :)

I have to look at the list of patterns again in search for something like "looking around in search for something" that works with the rest

Edit:
I found what is perfect:
pattern 15 "Shopper"
He looks on the ground bending his back than stands for a moment and then looks down again.
the middle part could be interpreted as him having a bad back and that he can't bend down for too long... perfect!

Now i have to rearrange my waypoints so that he has something to look at.

I also changed the AMBIENT_SYSTEM_STATE to 19 like someone from bioware suggested in another topic somewhere. It causes the animation to start at level load and it never stops...

Modifié par Apolyon6k, 01 décembre 2010 - 12:27 .