Parameters |
Description |
ScriptHandle playerId |
ID of entity which want to play a minigame |
disableMask |
Test usage mask for disabling filters composed from E_MinigameUsageFilter enum (optional) |
Syntax: Minigame.CanUseMinigame(ScriptHandle playerId, int filterMask)
Check if the minigame can start. Particular type of minigame can use different mask. By default all filters are enabled. Use disableMask to disable particular filter. Use Lua bit operations (bor) to compose bit values. For example: bor(E_MUF_CombatDanger,E_MUF_Other)
Copyright (c) 2012. All rights reserved.
|