Home   Help Search Login Register  

Author Topic: Another sitting down  (Read 923 times)

0 Members and 1 Guest are viewing this topic.

Judge856

  • Guest
Another sitting down
« on: 24 May 2003, 04:48:33 »
Hi,

I'm trying to get a unit to sit down throughout the whole mission, and im using

t1 playmove "EffectStandSitDown" - t1 being the unit

but he'll sit down, then stand up again, how can I get him to sitdown the whole mission?

thanks in advance

Mujahedeen

  • Guest
Re:Another sitting down
« Reply #1 on: 24 May 2003, 05:34:00 »
Hi!

try to use: t1 switchmove "EffectStandSitDown"

cheers...

_hammy_

  • Guest
Re:Another sitting down
« Reply #2 on: 24 May 2003, 05:34:23 »
you'll have to make a loop in a script:

Code: [Select]
timer = 0

#loop
timer = timer + 1
~1
t1 playmove "EffectStandSitDown"
?(timer >= 5):exit
goto "loop"

exit

not sure if code is 100% correct, i haven't edited in ofp for a while. also not sure if you still can loop animations, i used this code in ofp version 1.20 before all the other versions came out.

Edit, im not sure if switchmove keeps the dude in teh animation, but it puts teh dude in the position without the animation part
« Last Edit: 24 May 2003, 05:36:33 by HAMMY »

Judge856

  • Guest
Re:Another sitting down
« Reply #3 on: 24 May 2003, 14:30:39 »
Thanks!!

Now one more tiny question in a trigger area which is

West detected by East
INIT: set all east units combatmode to combat;fireatwill

I can't seem t get it properly, I've used a couple commands out of the Ref guide but I'm not sure I'm using them right or whatever.

thanks again in advance

Judge856

  • Guest
Re:Another sitting down
« Reply #4 on: 25 May 2003, 05:02:10 »
Guys, does anyone know the answer to my problem?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Another sitting down
« Reply #5 on: 25 May 2003, 11:24:54 »
On activation:    "_x setcombatmode {red}" forEach thislist

syntax not guaranteed.
Plenty of reviewed ArmA missions for you to play