nicatronTg

Shank

Apr 8th, 2010
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. --Instructions:
  2. --Save as firerocket.lua in lua\autorun\server\
  3. --Command is obvious, your a dult if you can't see it.
  4. function shootRocket(ply)
  5.     local r = ents.Create("rpg_missile")
  6.     r:SetPos(ply:GetShootPos() + ply:GetForward() * 10)
  7.     r:SetAngles(ply:GetAimVector():Normalize():Angle())
  8.     r:SetOwner(ply)
  9.     r:Spawn()
  10.     r:SetVelocity(r:GetForward() * 7000)
  11.    
  12. end
  13.  
  14. concommand.Add("scoin_firerocket", shootRocket)
Advertisement
Add Comment
Please, Sign In to add comment