Home   Help Search Login Register  

Author Topic: Need Knowlegable help on eventhandlers  (Read 854 times)

0 Members and 1 Guest are viewing this topic.

Offline Bazooka_Boy

  • Members
  • *
  • Proud to be a llama!
    • The Home of DJ Klimax
Need Knowlegable help on eventhandlers
« on: 28 Jan 2004, 20:37:05 »
Not having used eventhandlers yet I was wondering if someone in the know can tell me if this idea sounds possible.

*Problem*
Bunker addon - Gets hit by tank shell. Occupants should be unhurt but insted die.

*Idea*
I've made the bunker with big think fire geometry walls but a single tank shell still kills all occupants.  Small arms fire does not affect the occupants.

Could the Hit eventhandler be used to capture the hit of tanks/large shells and launch a script to somehow protect those inside.

I thought either by setting them as invincible whilst the explosion happens then back to their original heath straight after.

Or by somehow making the shell cause no damage (just the explosion).

Please can someone let me know if this idea could work and is worth spending time on??

Bazooka_Boy
Bazooka_Boy

If your happy and you know it then your wierd!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Need Knowlegable help on eventhandlers
« Reply #1 on: 28 Jan 2004, 21:21:27 »
Eventhandlers are specifically designed to launch a script when the event occurs, so that part is fine.     The problem is whether blast from a shell hitting the outside of a wall would register as a hit or just general blast, which does not cause the hit eventhandler to fire.    Worth giving it a try though.

If the loons are dying you might be better off with eventhandler killed.    
Plenty of reviewed ArmA missions for you to play

Offline Bazooka_Boy

  • Members
  • *
  • Proud to be a llama!
    • The Home of DJ Klimax
Re:Need Knowlegable help on eventhandlers
« Reply #2 on: 28 Jan 2004, 21:50:23 »
Thanks for the reply.

I'll try and give it a go to see if the hit eventhandler is fired.  Reading what you said I also thought that currently the bunker cannot be damged.  So I would need to set it up so it could be damaged in order to get the 5% and then the script could set the bunker back to full health along with the loons.

But with eventhandler killed I suppose you would fire the script and use that to recreate the loons?

Baz
Bazooka_Boy

If your happy and you know it then your wierd!