Home   Help Search Login Register  

Author Topic: hold waypoint until an object is destroyed?  (Read 700 times)

0 Members and 1 Guest are viewing this topic.

kris

  • Guest
hold waypoint until an object is destroyed?
« on: 27 Dec 2002, 15:19:51 »
guess its a trigger thing but cant figure out how and what to enter, sniper cover on a waypoint, i need to "hold" this waypoint until the troops go in and destroy a SAM before it goes on to the next waypoint.

thx in advance

mpbm

  • Guest
Re:hold waypoint until an object is destroyed?
« Reply #1 on: 27 Dec 2002, 15:33:33 »
I think u have to put the condition (if SAM destroyed) on a WP previous than the one u want.
OK?    If donĂ‚'t, post again.

kris

  • Guest
Re:hold waypoint until an object is destroyed?
« Reply #2 on: 27 Dec 2002, 15:58:41 »
must be doing something wrong, getting an error typing that in, unknown operator "destroyed"

me nOOB, how exactelly do you type it in?

thx again

Ricardo

  • Guest
Re:hold waypoint until an object is destroyed?
« Reply #3 on: 27 Dec 2002, 16:44:30 »
U can try using the Lock Wp command and Unlock wp...i have done something similar to that but don't remember very well...

Other way to do that would be a trigger:
On Activation: SAM getdammage >=1; SAMdestroyed=1
(damage is written with 2 mms in the editor if my memory is correct)
 Then create another trigger Condition: SAMdestroyed==1 and syncronize this one with the sniper's wp that indicates him to move after the hold wp-->u can (should) make this a move wp instead of hold....

I think that will do it :)

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:hold waypoint until an object is destroyed?
« Reply #4 on: 27 Dec 2002, 17:02:22 »
riight...well, this is actually frightfully simple. Conditions in waypoints...basically, what you write in the condition field must happen before what is written in the on Activation field does. In a waypoint, not only do these two things happen but the unit of the wp will go on his way too.

Ahem, that explained, you will need to write thusly in the condition of the wp (make it a normal MOVE one, a hold one would require a synchronized switch trigger):

!alive SAM

SAM is the name of the object to be destroyed. the ! indicates a "Not", you could also write: not(alive SAM). I.e, once the SAM is not alive (i.e dead), the wp will be made true and you can go on :)

There you go, any more problems, ask away.

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

kris

  • Guest
Re:hold waypoint until an object is destroyed?
« Reply #5 on: 27 Dec 2002, 17:08:34 »
thank you kindly gents, simple enough once u know how  ::)