Scripted item drop: Difference between revisions
Jump to navigation
Jump to search
(-added class hierarchy, concise page) |
mNo edit summary |
||
Line 4: | Line 4: | ||
== Outputs == | == Outputs == | ||
{{IO|OnCacheInteraction|Fires repeatedly while player is touching this|nofgd=1}} | {{IO|OnCacheInteraction|Fires repeatedly while player is touching this|nofgd=1}} | ||
{{IO|OnPlayerPickup|Fired when a player successfully picks up the prop. The [[ | {{IO|OnPlayerPickup|Fired when a player successfully picks up the prop. The [[Left 4 Dead 2/Script Functions#CanPickupObject|CanPickupObject]] function needs to exist and return true for the prop for it to fire.|nofgd=1}} | ||
{{IO|OnPlayerTouch|Fired when a player touches the prop.|nofgd=1}} | {{IO|OnPlayerTouch|Fired when a player touches the prop.|nofgd=1}} |
Revision as of 10:21, 14 February 2023
![]() |
---|
CScriptItem |
Template:L4d2 point It is a prop similar to prop_physics_override, but with much of its functionality removed. It does not collide with players and has outputs for being touched and picked up, making it useful for simple collectible items.
Outputs
- OnCacheInteraction !FGD
- Fires repeatedly while player is touching this
- OnPlayerPickup !FGD
- Fired when a player successfully picks up the prop. The CanPickupObject function needs to exist and return true for the prop for it to fire.
- OnPlayerTouch !FGD
- Fired when a player touches the prop.