• Creating a new suit entity
    2 replies, posted
I want to make an HEV suit but upgraded (More speed,More armor etc) but I don't know how. I know lua is needed but what are the basic stuff I need to put in to create an entity?
You basically need to know about [url]http://wiki.garrysmod.com/page/Category:ENTITY_Hooks[/url] [url]http://wiki.garrysmod.com/page/Category:Entity[/url] And for stuff like speed and armor and such, ctrl f stuff like speed or health or scaledamage in this library: [url]http://wiki.garrysmod.com/page/Category:GM_Hooks[/url]
Post this in the [URL="http://facepunch.com/forumdisplay.php?f=65"]Developer Discussion[/URL] sub instead and you'll get more developer hits. I don't really know what you mean with more speed and more armor, but you could use [URL="http://wiki.garrysmod.com/page/Entity/Use"]Entity:Use()[/URL] and set the player's speed and armor with [URL="http://wiki.garrysmod.com/page/GM/SetPlayerSpeed"]GM:SetPlayerSpeed()[/URL] and [URL="http://wiki.garrysmod.com/page/Player/SetArmor"]Player:SetArmor()[/URL]
Sorry, you need to Log In to post a reply to this thread.