Home   Help Search Login Register  

Author Topic: how do i make a man sit down?  (Read 1046 times)

0 Members and 2 Guests are viewing this topic.

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #15 on: 05 Apr 2004, 11:57:40 »
Yeah a lot easier way, in the script just put man2 playMove "EffectStandSitDown" and man3 playMove "EffectStandSitDown", then you just need to get one man to exec the script and they all sit down. There is an easier way using the selectthis command thing, but its a bit complicated if ur just starting scripting.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:how do i make a man sit down?
« Reply #16 on: 05 Apr 2004, 14:16:13 »
well. indeed there's an easier way  to let several units do exactly the same thing (means: using the same script)  ;D

As i guess, the script Deathwish sent you, is written for the unit "man" as he not gives any variables from the exec command (don't care, sounds more complicated as it is).

So you can modifiy the sitdown.sqs. Open it with CHOFPSE (which you have installed now, i hope)

at the very top of this script, add this line:

_man = _this select 0

next step, read through the rest of script and replace every "man" in it with "_man" (without quotes of course  ;) )

When done so far, save the script, leave the name as it is (sitdown.sqs)

Name your loons you want to make sit man1, man2, man3 and so on...
in theyr init line put:

[man1] exec "sitdown.sqs"
[man2] exec "sitdown.sqs"
...and so on...i bet you see the point

i hope it works all for you...good luck

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #17 on: 05 Apr 2004, 15:47:31 »
Yeah, myke has explained it well here. I didnt want to tell you this way in case you got confused with all the commands ??? after all, you have just started scripting and it aint easier