Home   Help Search Login Register  

Author Topic: whats wrong whit this?  (Read 783 times)

0 Members and 1 Guest are viewing this topic.

kris

  • Guest
whats wrong whit this?
« on: 19 Dec 2002, 08:16:32 »
total newbie here ::) as u can prolly see by my q...hehe

this SetBehaviour "SAFE"; this PlayMove "EffectStandTalk"

the men are just standing there im afraid  :-[

thx in advance

Gameer_77

  • Guest
Re:whats wrong whit this?
« Reply #1 on: 19 Dec 2002, 13:25:58 »
You can't use playmove/switchmove in a units init.

Use a trigger or script. :)

Gameer

Kaliyuga

  • Guest
Re:whats wrong whit this?
« Reply #2 on: 19 Dec 2002, 23:59:55 »
A little more specifically....    whatever is placed in the init field of a unit will occur as soon as the mission begins...

these lines of code (along with game logics) will be activated before anything else.. they seem to have some sort of priority over the others..

I would use a trigger.. activated by the two men being in close proximity to each other....



trigger: nonrepeatable
size: 0x0
condition:  dummy1 distance dummy2 < 2
activation:  dummy1 SetBehaviour "SAFE"; dummy1 dowatch dummy2;  dummy1 PlayMove "EffectStandTalk" ; dummy2 SetBehaviour "SAFE"; dummy2 dowatch dummy1 ; dummy2 PlayMove "EffectStandTalk"


Try that on for size ;)


Kaliyuga

kris

  • Guest
Re:whats wrong whit this?
« Reply #3 on: 20 Dec 2002, 00:12:40 »
ah yes!!!

Thank you!!!!

O Neil

  • Guest
Re:whats wrong whit this?
« Reply #4 on: 20 Dec 2002, 02:08:36 »
Just type this in the activation feild of a WAYPOINT

unitname switchMove "effectStandTalk" ;)