• if shift held play sound
    3 replies, posted
Hi, so I am working on a project for a plane, and I need it to play the sound p51mustang when shift key is held down. Can someone explain or make me a simple script? Also if you do make me one do I just have to dump it in an expression and then wire it up to the seat?
hook.Add( "KeyPress", "keypress_use", function( ply, key ) if ( key == IN_SPEED ) then         ply:EmitSound("yourfileinsoundfolder.wav", 75, 100, 1, CHAN_AUTO ) end end )
He's talking about Expression 2, I suppose.
Whoops, sorry Can't help with expression 2.
Sorry, you need to Log In to post a reply to this thread.