I've searched, but couldn't find anything. If I've missed a topic which solves this, please point me in the right direction. Thanks.
Okay, I need to know how to make a script run when the player throws a hand grenade and/or when the grenade explodes. I've managed to use the fired eventhandler work for when the player fires his rifle, but not when a grenade is thrown, or explodes.
I've got this in a trigger:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player addEventHandler ["fired",{if ((_this select 1) == "AK74") then {[] exec "firedweap.sqs"}}][/QUOTE]
Which works fine.
I've tried the same in another trigger:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player addEventHandler ["fired",{if ((_this select 1) == "handgrenade") then {[] exec "firedweap.sqs"}}][/QUOTE]
Which doesn't work at all. Can grenades be detected?
[Gareth Gates must die]
HOME 
Reply With Quote




