Class LuaGun
- Namespace
- LuaMod
- Assembly
- LuaMod.dll
public class LuaGun : LuaBehaviour
- Inheritance
-
object
Il2CppObjectBase
Object
Object
Component
Behaviour
MonoBehaviour
LuaGun
- Inherited Members
-
Constructors
LuaGun(IntPtr)
public LuaGun(IntPtr ptr)
Parameters
ptr IntPtr
Fields
AttachedGun
Field Value
- Gun
AttachedGunSlide
public SlideVirtualController AttachedGunSlide
Field Value
- SlideVirtualController
SupressBullet
public bool SupressBullet
Field Value
- bool
Methods
ForceGunFire()
public bool ForceGunFire()
Returns
- bool
GetFirepointPosition()
public DynValue GetFirepointPosition()
Returns
- DynValue
GetMagazineRounds()
public DynValue GetMagazineRounds()
Returns
- DynValue
LuaSpawnCartridge(Spawnable)
public bool LuaSpawnCartridge(Spawnable spawnableCartridge)
Parameters
spawnableCartridge Spawnable
Returns
- bool
LuaTriggerPulled()
public bool LuaTriggerPulled()
Returns
- bool
OnFire()
Returns
- bool
OnGripAttached(InteractableHost, Hand)
public void OnGripAttached(InteractableHost host, Hand hand)
Parameters
host InteractableHost
hand Hand
OnMagizineEjected()
public void OnMagizineEjected()
OnSlideGrabbed()
public void OnSlideGrabbed()
OnSlideReleased()
public void OnSlideReleased()
OnSlideUpdate(float)
public void OnSlideUpdate(float pos)
Parameters
pos float
SetMagazineRounds(int)
public bool SetMagazineRounds(int rounds)
Parameters
rounds int
Returns
- bool
SetupBehaviourFunctions()
public override bool SetupBehaviourFunctions()
Returns
- bool
Start()