Class RemoveItemAction
ECA action that removes items from a character's inventory by template. Server-only execution.
[Serializable]
public class RemoveItemAction : BaseAction, IAction
- Inheritance
-
RemoveItemAction
- Implements
- Inherited Members
Fields
Amount
The amount to remove.
[Tooltip("The number of items to remove.")]
[Min(1)]
public int Amount
Field Value
ItemTemplate
The item template to remove.
[Tooltip("The item template to remove from the character.")]
public BaseItemTemplate ItemTemplate
Field Value
Methods
Execute(ICharacter, EventData)
Executes the action. Must be implemented by derived classes.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action.
eventDataEventDataEvent data for the action.