Difference between revisions of "IsActionRef"
Jump to navigation
Jump to search
imported>Haama (Moved to Record Variable categories) |
imported>Antares (Created a See Also section, added a link to GetActionRef because I was on this page and wanted to go there and couldn't do it as conveniently as I would have liked.) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
IsActionRef ObjectRefID | (bool) IsActionRef ObjectRefID | ||
Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator. | Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator. | ||
== Example == | |||
begin OnActivate | begin OnActivate | ||
if IsActionRef player == 1 | if IsActionRef player == 1 | ||
Line 15: | Line 12: | ||
endif | endif | ||
end | end | ||
== See Also == | |||
[[GetActionRef]] | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Functions (CS)]] | |||
[[Category: Functions (CS 1.0)]] | [[Category: Functions (CS 1.0)]] | ||
[[Category: | [[Category: Miscellaneous Functions]] | ||
[[Category: | [[Category: Miscellaneous Functions (CS 1.0)]] | ||
<!-- Begin Search Terms | |||
Is | |||
Action | |||
Ref | |||
End Search Terms --> |
Latest revision as of 02:19, 13 October 2008
Syntax:
(bool) IsActionRef ObjectRefID
Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator.
Example[edit | edit source]
begin OnActivate if IsActionRef player == 1 MessageBox "You can't activate me, sucka!" else Activate endif end
See Also[edit | edit source]