• How to spawn an airboat with the gun?
    2 replies, posted
[B]EDIT:[/B] Nevermind got it. I was setting EnableGun to true not 1. The title says it all. I want to do this with LUA, not console commands. Help will be greatly appreciated. Thanks!
[QUOTE=oyasuna;44954143][B]EDIT:[/B] Nevermind got it. I was setting EnableGun to true not 1. The title says it all. I want to do this with LUA, not console commands. Help will be greatly appreciated. Thanks![/QUOTE] You could use the fire function on your airboat. [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index43b2.html[/url] [url]http://wiki.garrysmod.com/page/Entity/Fire[/url] [lua] airboatEnt:Entity:Fire( "EnableGun", "1", 0 ) [/lua] [url]https://developer.valvesoftware.com/wiki/Prop_vehicle_airboat[/url] Not sure if you solved it already, your edit wasn't completely clear, if you did mark it solved.
[QUOTE=Jeezy;44955970]You could use the fire function on your airboat. [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index43b2.html[/url] [url]http://wiki.garrysmod.com/page/Entity/Fire[/url] [lua] airboatEnt:Entity:Fire( "EnableGun", "1", 0 ) [/lua] [url]https://developer.valvesoftware.com/wiki/Prop_vehicle_airboat[/url] Not sure if you solved it already, your edit wasn't completely clear, if you did mark it solved.[/QUOTE] Yeah I figured it out, this is exactly what I did. My problem was that I was setting EnableGun to true and not to 1. Also I was executing Fire after the spawn, which was a problem.
Sorry, you need to Log In to post a reply to this thread.