Difference between revisions of "IsActionRef"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0))) |
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
||
Line 16: | Line 16: | ||
end | end | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1. | [[Category:Functions (GECK 1.1)]] | ||
[[Category:Object Functions]] | [[Category:Object Functions]] | ||
[[Category:Object Functions (GECK 1. | [[Category:Object Functions (GECK 1.1)]] |
Revision as of 12:41, 15 August 2009
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, sucka!" else Activate endif end