Home   Help Search Login Register  

Author Topic: man burn scripts  (Read 448 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
man burn scripts
« on: 03 Oct 2004, 23:06:12 »
All the latest quality addons have manburn scripts.
You are deadmeat when you catch fire, so I wonder if it's possible to extinguish fires when you step into the water.
So the script should check the unit when it's below sealevel, add some white smoke vi drop and extinguish the fire...


Search or search or search before you ask.

Offline Nemesis6

  • Members
  • *
Re:man burn scripts
« Reply #1 on: 03 Oct 2004, 23:29:52 »
Easy to do. Problem is that you can't judge exactly when the player is in water, only if he's out deep - it's difficult / inaccurate on the shores.


However, I remember seeing a water detection method that involved a boat, but it wasn't visible, and it was totally accurate, too. It was in one of Vektorboson's threads on the BIS forums.
« Last Edit: 03 Oct 2004, 23:31:38 by Nemesis6 »
I am actually flying into a star... this is incredible!

Offline XCess

  • Former Staff
  • ****
Re:man burn scripts
« Reply #2 on: 11 Oct 2004, 21:23:33 »
to check water level:

1: create a pbr far out in the ocean. name it (for example i will call it boat)
2: create a script. ill name it waterLevel.sqs
3: on the init of the boat type []exec "waterLevel.sqs"

4: put this in waterlevel.sqs:

                waterLevel = getPos boat select 2

you now know the height of the water.
just put and exit line in the manburn script with the condition:

   (getpos _man select 2) <= waterLevel

so the condition line would be:

   ?((getpos_man select 2) <= waterLevel) : exit

simple.