Home   Help Search Login Register  

Author Topic: Trigger activating on location of smoke grenade  (Read 691 times)

0 Members and 1 Guest are viewing this topic.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Trigger activating on location of smoke grenade
« on: 23 Dec 2005, 21:52:58 »
Hi all,

Is there a way to activate a trigger when a smoke grenade is set off within a certain area? So if the grenade is thrown into a building, the trigger activates, but if its thrown elsewhere nothing happens?

Thanks.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Trigger activating on location of smoke grenade
« Reply #1 on: 23 Dec 2005, 22:00:37 »
I can only think of a complicated way to do this using a fired Event Handler, nearestObject etc.

Let's see if someone else knows a simpler way.

Kyle Sarnik

  • Guest
Re:Trigger activating on location of smoke grenade
« Reply #2 on: 23 Dec 2005, 22:10:12 »
Code: [Select]
? (nearestobject [building,"smokeshell"] distance building) < 5

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Trigger activating on location of smoke grenade
« Reply #3 on: 23 Dec 2005, 22:21:08 »
Yeh that should work.  My poor brain is working slowly tonight.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Trigger activating on location of smoke grenade
« Reply #4 on: 24 Dec 2005, 16:09:43 »
Thanks, I thought it would be more complicated that a single line of code  ;D

Solved
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB