HOW TO SET UP A GUN SCRIPT.
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
SetEventScript [ItemSwing] [GunName] [IfScriptName]
--------------------------------------------------------------------------------------------
If
Intersect [ray] [vRel;0,0,0,] [vRel;900,0,0] [players\mobs]
Then
Context [player] [target]
Health [-50]
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
AMMO SCRIPT
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
If
Hasinventory [player] [WhatEverYouWantTheAmmoToBe] [compare] [1]
Then
Inventory [player] [Take] [TheAmmo] [1]
ParticleEmitter [vRel; +1,0,-1] [3,5 [2,5] 3,5] [vRel; +2,+3,0] [2,2,2,2] [225,235,245,255]
scritp [NameOfIfFile]
Else
Notify [Out of ammo] [Local [r,g,b]
EndIf
-----------------------------------------------------------------------------------------------
If you need help contact me on xbox.