Home   Help Search Login Register  

Author Topic: killing a unit after a certain time  (Read 645 times)

0 Members and 3 Guests are viewing this topic.

beefhole1

  • Guest
killing a unit after a certain time
« on: 23 Jan 2005, 07:03:22 »
I'm making a mission where you are a counter sniper protecting the president of nogova, and it's all done except I need the president to die after, say five minutes or so. I can't get the russian sniper to do it, he's too far away. Is there anyway to have a unit just die after a certain amount of time?

Homefry31464

  • Guest
Re:killing a unit after a certain time
« Reply #1 on: 23 Jan 2005, 07:16:17 »
You could just script it...

Call it mankill.sqs
_man = _this select 0
~(numberofminutes * 60)
_man setdammage 1
exit


Replace numberofminutes with however many minutes you want, or remove everything in the brakets and put in the amount of seconds you want.

Call the script by the man you want to kill... IE.

[manname] exec "mankill.sqs"

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:killing a unit after a certain time
« Reply #2 on: 23 Jan 2005, 11:05:29 »
Or you can just do a trigger with 300 in countdown. ;)

:beat: *Gets Shot* :beat:

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:killing a unit after a certain time
« Reply #3 on: 23 Jan 2005, 13:24:53 »
Trigger countdown 300 + introtime (if U use 1)

But isnt the command & usefull here?

Can someone explain how to use it in this example?
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

beefhole1

  • Guest
Re:killing a unit after a certain time
« Reply #4 on: 23 Jan 2005, 16:26:24 »
Yes, examples are cool  ;)

Homefry31464

  • Guest
Re:killing a unit after a certain time
« Reply #5 on: 23 Jan 2005, 17:09:53 »
Trigger countdown 300 + introtime (if U use 1)

But isnt the command & usefull here?

Can someone explain how to use it in this example?

Both me and Armty's examples work in these conditions, I'm rather confused why we need to use the & thing....
« Last Edit: 23 Jan 2005, 17:10:13 by Homefry »

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:killing a unit after a certain time
« Reply #6 on: 23 Jan 2005, 18:37:39 »
Waiting for a time: line starting with '&'.
    Example: &endTime is equivalent to @_time >= (endTime)

Just an idea,donno if this has advantages instead of ~

& is not much used in recent scripts,but it was in BIS missions.
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Homefry31464

  • Guest
Re:killing a unit after a certain time
« Reply #7 on: 23 Jan 2005, 19:02:57 »
Waiting for a time: line starting with '&'.
    Example: &endTime is equivalent to @_time >= (endTime)

Just an idea,donno if this has advantages instead of ~

& is not much used in recent scripts,but it was in BIS missions.


I see what you mean now.  Three ways to do the same thing... interesting.