Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Instructions:
- --Save as firerocket.lua in lua\autorun\server\
- --Command is obvious, your a dult if you can't see it.
- function shootRocket(ply)
- local r = ents.Create("rpg_missile")
- r:SetPos(ply:GetShootPos() + ply:GetForward() * 10)
- r:SetAngles(ply:GetAimVector():Normalize():Angle())
- r:SetOwner(ply)
- r:Spawn()
- r:SetVelocity(r:GetForward() * 7000)
- end
- concommand.Add("scoin_firerocket", shootRocket)
Advertisement
Add Comment
Please, Sign In to add comment