Class GiveItemAction
ECA action that gives an item to a character's inventory. Server-only execution.
[Serializable]
public class GiveItemAction : BaseAction, IAction
- Inheritance
-
GiveItemAction
- Implements
- Inherited Members
Fields
Amount
The amount to give.
[Tooltip("The number of items to give.")]
[Min(1)]
public int Amount
Field Value
ItemTemplate
The item template to give.
[Tooltip("The item template to give to 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.