Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Harkonin

Eventhandler

Recommended Posts

Anyone know the Engine eventhandler off the top of their head?

Can't get the darn syntax or format right

this addEventHandler["engine",{(_this + ["on"]) Exec "yadayada.sqs"}]

Share this post


Link to post
Share on other sites

Maybe?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

this addEventHandler["engine",{ if (_this select 1) then  [variables here] Exec "yadayada.sqs"}]

Not sure ,i don't usually add eventhandlers external from the addon

Share this post


Link to post
Share on other sites

Just always always always put

player sideChat format ["%1", _this]

inside the script being called to see what it's being sent. smile_o.gif

this addEventHandler ["engine", {_this exec "yadayada.sqs"}]

Doolittle

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  

×