Difference between revisions of "Logic pickupdrop"
Jump to navigation
Jump to search
Johnny moe (talk | contribs) |
Johnny moe (talk | contribs) |
||
Line 2: | Line 2: | ||
== Keyvalues == | == Keyvalues == | ||
'''Entity to Watch''' <target_destination | '''Entity to Watch''' <target_destination> | ||
: Name of the entity to watch (for outputs). | : Name of the entity to watch (for outputs). | ||
Line 27: | Line 27: | ||
: Activator is the player, caller is the entity that was picked up. | : Activator is the player, caller is the entity that was picked up. | ||
__NOEDITSECTION__ |
Latest revision as of 20:43, 12 May 2019
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.