class HandGuardBaseSource
Derived classes
View all 18 descendants
- BotGuardHasItemInHands
- HandGuardAnd
- HandGuardCanForceSwap
- HandGuardCanMove
- HandGuardCanSwap
- HandGuardHasDestroyedItemInHands
- HandGuardHasItemInEvent
- HandGuardHasItemInHands
- HandGuardHasRoomForItem
- HandGuardInstantForceSwap
- HandGuardIsSameItemInHands
- HandGuardNot
- HandGuardOr
- HandSelectAnimationOfForceSwapInHandsEvent
- HandSelectAnimationOfMoveFromHandsEvent
- HandSelectAnimationOfTakeToHandsEvent
represents guard on a transition from state to state
Methods 1
bool GuardCondition(HandEventBase e)enable or disable transition based on condition
Returns: true if transition is allowed
NoteItem is guaranteed to exist on remote client due to replication relationships
NoteThe guard is a boolean operation executed first and which can prevent the transition from firing by returning false
Referenced by HandGuardAnd.GuardCondition(), HandGuardNot.GuardCondition(), and HandGuardOr.GuardCondition()