Class Weapon
A type of handtool that launch a type of bullet when being used
Implements
Properties
BulletID
Entity ID of the bullet
Declaration
public int BulletID { get; protected set; }
ValidDirection
Which direction can this weapon attack
Declaration
protected virtual WeaponValidDirection ValidDirection { get; }
Methods
OnPoseAnimationUpdate_FromEquipment(PoseCharacterRenderer)
This function is called every frame when a pose-style character equipping this item
Declaration
public override void OnPoseAnimationUpdate_FromEquipment(PoseCharacterRenderer rendering)
Overrides
SpawnBullet(Character)
Spawn the bullet entity
Declaration
public virtual Bullet SpawnBullet(Character sender)
Parameters
Type | Name | Description |
---|---|---|
Character | sender | Character that use the weapon |
Returns
Type | Description |
---|---|
Bullet | Instance of the spawned bullet entity. Return null when invalid |