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

how to use inputAction to play sound

Recommended Posts

[] spawn { waitUntil {inputAction "reloadMagazine" > 0}; hint "Reload Key Pressed"; };

I found that in the WIKI and have no idea how to implement it.

I want to modify it to play a sound instead of a hint when the unit Sprints/Moves Forward Fast.

[] spawn { waitUntil {inputAction "MoveFastForward" > 0}; [nil,nil,rPLAYSOUND,"CHARGE"] call RE; };

im geting errors like Expected this and that, type Script bla bla

Its hopefully something simple :)

cheers for looking

Share this post


Link to post
Share on other sites

while {alive player} do {_t = time; waitUntil {time - _t > 2}; waitUntil {inputAction "MoveFastForward" > 0};

[nil,nil,rPLAYSOUND,"CHARGE"] call RE; sleep 8; }; sleep 2;

Done it like that, but its not exactly ideal as it repeats round, and i just worked around that using sleep. and i dont think {_t = time; waitUntil {time - _t > 2}; that bit does anything.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×