I know the speed is defined in the model? But is there any way to check the npc's max speed of walk/run when not doing the animation?
Become a police man and use the radar gun
[QUOTE=iRzilla;26935062]If you want the maximum speed of your player I suggest using:
[b][url=http://wiki.garrysmod.com/?title=Player.GetMaxSpeed]Player.GetMaxSpeed [img_thumb]http://wiki.garrysmod.com/favicon.ico[/img_thumb][/url][/b]
If you want the current speed of your player I suggest using:
[b][url=http://wiki.garrysmod.com/?title=Entity.GetVelocity]Entity.GetVelocity [img_thumb]http://wiki.garrysmod.com/favicon.ico[/img_thumb][/url][/b]
Then use Vector:Length() to get the speed.[/QUOTE]Would these also work on entitys with MOVETYPE_STEP? Because I mainly need this for NPC with such movetype.
[QUOTE=freemmaann;26938041]Would these also work on entitys with MOVETYPE_STEP? Because I mainly need this for NPC with such movetype.[/QUOTE]
No. It's not possible to get the movement speed of a NPC.
You have to play the animation for them to WALK and the animation for them to RUN. The speed of the npc just depends on the animation I believe.
Edit* nvm stupid, I didn't read your post well.
Uh. I am pretty sure you can get the movement speed of any entity. You just can't [b]set[/b] it for some (i.e NPCs).
Hum.... What about the wire speed module?
Sorry, you need to Log In to post a reply to this thread.