PlayerPlaySound ONLY while a onject is moving?
#1

I am tying to figure out how to make it so a mechanic gate sound will be played meanwhile a object is moving, as fast at the "gate" object is stopping the sound should stop.

Can someone open their minds and help me out here?
Reply
#2

PlayPlayerSound, use this to play the sound at the position of the gate, then check how long it takes for the gate to move, then set a timer to stop the gate sound.

Like, go in game, do the command to open the gate, and count how long it takes, then just set the timer with the seconds you counted.
Reply
#3

I thought about that but what if i use such a command so i open and close it with the same command and types in the command half way when the gate is "opening"

You see my point? Then the timer doesnt know the actual location of the object and the sound will continue to play a bit when the gate is closed...


I have thought about something like this..
If you add the PlayPlayerSound with the id of 1153 in the command script and make like a OnObjectMoved with PlayPlayerSound with id 1154 to stop the sound if the object (the gate) stops.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)