Jump to content
Sign in to follow this  
OLO

BAF_ied's and eventhandlers

Recommended Posts

Hello,

my problem is that whenever I create a BAF_ied's via createVehicle command and set a "hit" EventHandler for it, the handler doesn't fire. Funny thing is that when I do exactly the same with IED's placed in the editor, the handler do fires, so obviously scripted ones lack something, but don't know what that is. Can anybody know the answer?

Share this post


Link to post
Share on other sites

Try killedEH / damaged / handleDamage.

Share this post


Link to post
Share on other sites

Nope, it doesn't work. Looks like creating them that way makes them "naked" object that can't be dammaged. Any other suggestions?

Edited by OLO

Share this post


Link to post
Share on other sites

Sorry posted in the wrong thread

Edited by F2k Sel

Share this post


Link to post
Share on other sites

It is odd, and very frustrating :/.

"BAF_ied_v1" (or any other) is not the same as the IED's objects that can be placed in the editor, so you can't do anything with them, you can't give them an EH or add an action, anything.

So how I can create via script, the same object which figures in the editor list?!

Sometimes this game drives me crazy...

Share this post


Link to post
Share on other sites

I ran into this problem a while back. I ended up having a new custom IED object made so that the event handlers would work.

I then had an IED disruptor made, plus custom explosions. All good fun.

Share this post


Link to post
Share on other sites

Roger. Thanks for the answers.

Share this post


Link to post
Share on other sites

I'd say definitely because of it. Thanks for the info PvPscene.

Share this post


Link to post
Share on other sites

a long time ago, i created a IED script in wich i spawned a ammo crate 0.3 meter (or something similar) below the (any)object, then added a handleDammage eventhandler to the crate, now players could shoot missiles or use satchels or whatever to clear out the object, the crate registrered the damage below ground, if enough damage then it activated the "extra kaboom" and was deleted.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×