Home   Help Search Login Register  

Author Topic: Burn baby burn?  (Read 571 times)

0 Members and 1 Guest are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Burn baby burn?
« on: 09 Aug 2003, 00:06:51 »
I've been playing around with a fire addon lately and I don't know how to get people to die from the fire. I just need a script that kills anyone or anything that gets within, say 10 meters, of the core. I looked at the "burn.sqs" script from the napalm addon but I couldn't make much out of it.

Thx guys, yer the best :)
Weeee...

FlidMerchant

  • Guest
Re:Burn baby burn?
« Reply #1 on: 09 Aug 2003, 01:14:13 »
I know in a trigger you could put:

Condition: <Unitname> distance <firename> < 10
Activation: <Unitname> setdammage 1

But you'd have to do one for every unit and I can't remember how to apply it to anything within 10 metres.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Burn baby burn?
« Reply #2 on: 09 Aug 2003, 12:38:48 »
If you wanted a sudden death you could just use a trigger

Axis:     10 x 10   or whatever
Activation box:   Anybody Present       Repeatedly
On Activation:    "_x setdammage 1" forEach thislist


For something a little more subtle, try this.   Syntax not guaranteed.    A healthy loon will die over about 5 seconds ... if you run outside the trigger area in this time you will survive injured.    Make sure the trigger is on repeatedly.

On Activation:  "_x setdammage {getdammage _x + 0.1}" forEach thislist
Plenty of reviewed ArmA missions for you to play

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Burn baby burn?
« Reply #3 on: 09 Aug 2003, 12:51:35 »
Thank you both.

I got "_x setdammage 1" forEach thislist to work, but unfortunately not "_x setdammage {getdammage _x + 0.1}" forEach thislist. No biggie, thx again :)

« Last Edit: 09 Aug 2003, 12:52:10 by Wildebeest »
Weeee...

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Burn baby burn?
« Reply #4 on: 09 Aug 2003, 14:04:31 »
Try:

"_x setdammage (getdammage _x + 0.1)" forEach thislist

(brackets instead of braces ;) )

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Burn baby burn?
« Reply #5 on: 09 Aug 2003, 14:15:44 »
Sui ye old bear there! That worked just fine :)
I've one little concern though...
The unit only obtain injury while entering the trigger. I would like him to get hurt while standing in the fire instead of just when he enters.

macguba wrote before: "A healthy loon will die over about 5 seconds" so I suppose that I'm doing something wrong :)
Weeee...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Burn baby burn?
« Reply #6 on: 09 Aug 2003, 20:01:17 »
D'you know as I wrote that I thought the brackets might be wrong ... anyway, my original answer is not exactly what you want... the trigger will not keep firing while there is somebody in it (of course) it will only fire once.    It won't fire again until the area is cleared and then somebody comes back into it.  Duh-oh.   I don't think you're doing anything wrong.

You could try concentric rings of triggers, each slightly smaller than the last.   Therefore, if you move close to the fire, you will take more and more damage though if you stay where you are you won't.

More elegant would be a script.   Not quite sure how to do it.... you'd need to pass all the units in the trigger area to the script, then run a loop checking their distance from the fire and applying damage accordingly ... if they left the area that would be fine - the distance command will cope with that, but I'm not sure how you'd handle new units coming into the area while the script was running.    Any ideas, anybody?





Plenty of reviewed ArmA missions for you to play

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Burn baby burn?
« Reply #7 on: 09 Aug 2003, 20:15:07 »
Thx man. Well I've got no clue of how to make a script but that solution with smaller triggers might work just as well :)
Tho a script is always to prefer I guess.
Weeee...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Burn baby burn?
« Reply #8 on: 09 Aug 2003, 20:58:11 »
Scripts aren't always best.   If you can do something with waypoints and triggers then usually you should.
Plenty of reviewed ArmA missions for you to play