Author Topic: how would you do a on walk script  (Read 1003 times)

This is not for an event i need it for a server script
« Last Edit: July 25, 2013, 04:48:31 PM by SuperFlaminninja »

Create a schedule based loop and have it loop through every player object and determine if their position has changed. Try to make exceptions for explosions, death, and impulse based movement.

There's no callback for when a player walks. You'd have to make a script that checks the players position constantly, and if their XY position has changed they've walked, or rather moved. This method isn't perfect, someone who jumped off a building still has XY velocity and would be considered "walking" even though they're not actually walking, they're falling. If you tell us what you're trying to do, we can probably suggest a better way to do it.


Also; just a side note: you don't "do" a script. You make a script.

There's no callback for when a player walks. You'd have to make a script that checks the players position constantly, and if their XY position has changed they've walked, or rather moved. This method isn't perfect, someone who jumped off a building still has XY velocity and would be considered "walking" even though they're not actually walking, they're falling. If you tell us what you're trying to do, we can probably suggest a better way to do it.


Also; just a side note: you don't "make" a script. You do a script.
im making a foot step sound so i dont think theres a beter way. Tell me if there is

im making a foot step sound so i dont think theres a beter way. Tell me if there is
ah

port did this once, i wonder how he did it
let us twiddle our thumbs and wait for him to get in here, or pm him maybe?

Actually, I believe Torque has a footstep feature built in. Let me go dig for a bit.




There's also this one:

https://www.youtube.com/watch?v=L4y-WTTKLd8
raaah! I hope he didnt realese this and hes doing exactley what i was gona and also ima pick ur brain how would you make the sound change on the diffrent brick like sand cemejt dirt and all that junk

Also is this a client sided mod i need a server so itl be a 3d sound

Also; just a side note: you don't "do" a script. You make a script.
Thank you for putting that image in my mind.

Also; just a side note: you don't "do" a script. You make a script.
same thing, if you know what i mean
Also is this a client sided mod i need a server so itl be a 3d sound
me and bushido made a footstep mod

http://forum.blockland.us/index.php?topic=202371.0
this one is server sided