Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- LASER GATLING KUREWA
- --]]
- function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement )
- if weapon == 38 then -- If the player shoots with a minigun, and hits another player...
- setElementData(localPlayer, "laser.aim", true, true)
- else
- setElementData(localPlayer, "laser.aim", false, false)
- end
- end
- -- Add this as a handler so that the function will be triggered every time the local player fires.
- addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFunc )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement