ItemSpawning
Gets called when the server is spawning item on map.
Start a script section
!-- OnEvent ItemSpawning
-- require $evItemType $evIsAllowed
# Add your instructions here
- Group: ServerEvents
- Cancellable: Yes
- Event data:
ItemSpawningEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
$evItemType | ItemType enum value | Gets or sets type of item which will spawn. |
$evIsAllowed | bool value | Whether the event is allowed to run. |