Jump to content
Sign in to follow this  
barbolani

addEventHandler "Fired" & chemlight

Recommended Posts

Hello scripting gurus...

Help!

On init of player:

this addEventHandler ["fired", {_this exec "evacuacion.sqf"}]

Script:

_magazine = _this select 5;
_chemlight = _this select 6;


if ( _magazine == "Chemlight_green" ) then
   {hint "chemlight!"}
else
   {hint "no chemlight"};

No hint appears! If I place a hint format ["magazine fired %1",_magazine] it shows the magazine perfectly....

I'm lost...

I want this for a confirmation to AI chopper about where to land (créate an invisible helipad and so on)

Share this post


Link to post
Share on other sites

your not calling the script correctly your using exec and it should be execvm

this addEventHandler ["fired", {_this execvm "evacuacion.sqf"}]

Share this post


Link to post
Share on other sites

OMG Thanks man. In a thousand years I wouldn't noticed....

Caused by copy / pasting from COMREF (I'm a lazy bastard)

Thanks!

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  

×