Logic pickupdrop

From Sunrust Wiki
Jump to navigation Jump to search

Controls events when players pickup or drop things.

Keyvalues

Entity to Watch <target_destination>

Name of the entity to watch (for outputs).

Inputs

input ForceDrop <string>

Forces the dropping of something that's picked up by a human.

input DisablePickup <string>

Disables human pickups for the specified entity. Does not force dropping if currently carried, use the above input.

input EnablePickup <string>

Enables human pickups for the specified entity.

Outputs

output OnPickedUp <void>

Activator is the player, caller is the entity that was picked up.

output OnDropped <void>

Activator is the player, caller is the entity that was picked up.