GetIsPlaceableObjectActionPossible(object, int)
Check whether a given action is valid for a given placeable object.
int GetIsPlaceableObjectActionPossible( object oPlaceable, int nPlaceableAction );
Parameters
oPlaceable
Placeable object.
nPlaceableAction
Description
Returns TRUE if the owner of the script can perform the action specified in the second argument on the placeable object given in the first argument. Otherwise, returns FALSE.
Remarks
This function only works if it is placed in a script which is "owned" by the creature which will be performing the action. Otherwise, it will always return FALSE. This is necessary because it takes the abilities of the creature into account when determining whether the action is possible.
Version
1.22
See Also
categories: | Action on Object Functions |
constants: | PLACEABLE_ACTION_* Constants |
author: Jason Harris, editor: Kristian Markon