• Player_class.GetClassName
    1 replies, posted
I'm trying to set the move type of a certain class in fretta. 1st off can i use SetMoveType in the class file it self? If not then can I get an example of how to use Player_class.GetClassName.
You could use this in the class script. [lua]function CLASS:OnSpawn( ply ) ply:SetMoveType(whatever) end[/lua] If you want to change it through out the gamemode you can check like this: [lua]if ply:GetPlayerClassName() == "class name" then ply:SetMoveType(whatever) end[/lua]
Sorry, you need to Log In to post a reply to this thread.