Jump to content
Sign in to follow this  
giallustio

Add a value to EH

Recommended Posts

Hi all!

Is there a way to add a value to the _this array of an EH?

This is what i tried, but doesn't work:

//from init.sqf
BTC_hint = {hint format ["%1", _this];};
_a = 1;
_result = 0;
_result = _a + random 3;
// ab is a unit in the editor
ab addEventHandler ["killed",{(_this + [_result]) spawn BTC_hint;}];
// any as result instead of a number

if i change _result with a number works, but it isn't what i want.:(

Any ideas?

Share this post


Link to post
Share on other sites

Thank you a lot SickBoy!

:)

And you're right! I have to rethink my implementation! Maybe a loop can do the trick ;)

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  

×