Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. --[[
  2. LASER GATLING KUREWA
  3. --]]
  4.  
  5. function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement )
  6.     if weapon == 38 then -- If the player shoots with a minigun, and hits another player...
  7.          setElementData(localPlayer, "laser.aim", true, true)
  8.          else
  9.          setElementData(localPlayer, "laser.aim", false, false)
  10.     end
  11. end
  12. -- Add this as a handler so that the function will be triggered every time the local player fires.
  13. addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFunc )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement