Home   Help Search Login Register  

Author Topic: Problem with Pushup script.  (Read 1556 times)

0 Members and 1 Guest are viewing this topic.

Wolf

  • Guest
Problem with Pushup script.
« on: 20 Sep 2002, 20:53:59 »
#loop
Wg1 playmove "FXStandDip"
wg2 playmove "FXstanddip"
wg3 playmove "fxstanddip"
wg4 playmove "fxstanddip"
Wg5 playmove "FXStandDip"
wg6 playmove "FXstanddip"
wg7 playmove "fxstanddip"
wg8 playmove "fxstanddip"
? endscript : exit
~0.7
goto "loop"

Alright, I am using this script to have a group of Spetnatz do continually do pushups untill an alarm goes off, then in the alarm trigger I have    Endscript = true.
But.
50% of the time they will not stop, most of the time they will finnish the last set and get up.
Otherwise they keep doing pushups, even if I start shooting at them, does anyone know why this would happen?
Thank you.

Wolf

  • Guest
Re:Problem with Pushup script.
« Reply #1 on: 22 Sep 2002, 04:49:26 »
Ok, its been a couple days, is there know one who can tell me why this script wont end the majority of the time and how to fix it?
Thank you.

Wolf

  • Guest
Re:Problem with Pushup script.
« Reply #2 on: 22 Sep 2002, 04:50:10 »
Even if its a better script!
Anything that could help me here.
Thank you.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Problem with Pushup script.
« Reply #3 on: 22 Sep 2002, 13:47:47 »


[attachment deleted by admin]

Dalio

  • Guest
Re:Problem with Pushup script.
« Reply #4 on: 22 Sep 2002, 15:32:06 »
Try switchmove every 3 (maybe 2.5) seconds

eg

#loop

soldier switchmove "FXStandDip" // not sure if thats the right command//
~3

goto "loop"

add your if statement for the alarm or if there damage < 1 inside the loop if you want them to stop doing pushup(i cant quite remeber how do do this :P)
« Last Edit: 22 Sep 2002, 15:36:44 by Dalio »

Wolf

  • Guest
Re:Problem with Pushup script.
« Reply #5 on: 22 Sep 2002, 15:44:00 »
Thanks, I'll try it and get back to you.

Wolf

  • Guest
Re:Problem with Pushup script.
« Reply #6 on: 23 Sep 2002, 00:21:53 »
ok, perfect.
But
How do I set it up for 8 men, not in a group to do this?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Problem with Pushup script.
« Reply #7 on: 23 Sep 2002, 00:36:05 »
If they're not grouped together, use a NAMED trigger which covers the guys,
the in the scroll, use :

"_x switchmove blabla" foreach units list NameOfTrigger

...I think.  :P ;D

ps. name it in the NAME field of the trigger, not the TEXT field

--------------------

...or create an array :

MyArray = [bob, rob, sob, etc]

Then just type :

"_x playmove...." foreach MyArray

( or was it foreach units MyArray ?)  ::)
« Last Edit: 23 Sep 2002, 00:38:41 by Tomb »