Is it possible to write a lua file for when people either click on an object or step on one that will modify thier speed?
Is it possible to write a lua file for when people either click on an object or step on one that will modify thier speed?
Yes. It should be possible. I'm not quite sure on what you need to do to change a players speed though...
Why would you create a lua file to mod the speed? to create the lua file, it would require c++, and to mod the speed, you would use c+=... SO no need for the lua file.
Nom Nom Nom :P
It is possible, the lua function to modify run speed isCode:ModifyRunSpeed()
Herleybob, You underestimate the power of Lua lol.
Note::The Object has to be "Clickable"
That should do it, for plr:ModifyRunSpeed() turn it in to any number you want.Code:function GameobjectName_onUse(Unit, Event, Misc) local plr = Unit:GetClosestPlayer() plr:ModifyRunSpeed() end RegisterGameObjectEvent(GameObjectID ,4, "GameobjectName_onUse")
plr:ModifyRunSpeed(1-255)
Last edited by BrantX; 03-25-2009 at 06:42 PM.