Class Pickup
Assembly: SlipeServer.dll
Syntax
[DefaultElementClass(ElementType.Pickup)]
public class Pickup : SharedPickup
Constructors
|
Improve this Doc
View Source
Pickup(Vector3, PickupModel, Int32)
Creates a custom model pickup
Declaration
public Pickup(Vector3 position, PickupModel model, int respawnTime = 30000)
Parameters
|
Improve this Doc
View Source
Pickup(Vector3, PickupType, Int32, Int32, Int32)
Creates a pickup from all CreatePickup variables
Declaration
public Pickup(Vector3 position, PickupType type, int amount, int respawnTime = 30000, int ammo = 50)
Parameters
|
Improve this Doc
View Source
Pickup(Vector3, SharedWeaponModel, Int32, Int32)
Declaration
public Pickup(Vector3 position, SharedWeaponModel weapon, int ammo = 50, int respawnTime = 30000)
Parameters
|
Improve this Doc
View Source
Pickup(Vector3, Int32)
Creates a model pickup from any model ID
Declaration
public Pickup(Vector3 position, int model)
Parameters
Properties
|
Improve this Doc
View Source
IsSpawned
Get if this pickup is currently spawned
Declaration
public bool IsSpawned { get; }
Property Value
|
Improve this Doc
View Source
RespawnInterval
Gets and sets the respawn interval
Declaration
public int RespawnInterval { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Use(Player)
Have a player use this pickup
Declaration
public bool Use(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Returns
Events
|
Improve this Doc
View Source
OnSpawn
Declaration
public event Pickup.OnSpawnHandler OnSpawn
Event Type
|
Improve this Doc
View Source
OnUse
Declaration
public event Pickup.OnUseHandler OnUse
Event Type
Extension Methods