Difference between revisions of "IsActionRef"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
imported>Mikla m |
||
Line 10: | Line 10: | ||
begin OnActivate | begin OnActivate | ||
if IsActionRef player == 1 | if IsActionRef player == 1 | ||
MessageBox "You can't activate me | MessageBox "You can't activate me!" | ||
else | else | ||
Activate | Activate |
Revision as of 13:14, 5 January 2010
Syntax:
IsActionRef ObjectRefID
Example:
IsActionRef player
Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator.
For example:
begin OnActivate if IsActionRef player == 1 MessageBox "You can't activate me!" else Activate endif end