CrateContainer class
Crate container.
A wooden crate that breaks open when hit by a shot, TNT or a charged player, releasing the event-specified contents (any collectible the level designer placed inside) for the player to grab.
Base classes
- class GenericContainer
- Base class of an item container.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- CrateContainer()
- Creates a new instance.
Public functions
- auto OnHandleCollision(ActorBase* other) -> bool override
- Called when the object collides with another object.
Protected functions
- auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
- Called when the object is created and activated.
- auto OnPerish(ActorBase* collider) -> bool override
- Called when the object has no health left and should perish.