Difference between revisions of "IsActionRef"
Jump to navigation
Jump to search
imported>Haama (Moved to Record Variable categories) |
imported>Haama (Fixed link) |
||
Line 18: | Line 18: | ||
[[Category: Functions (CS 1.0)]] | [[Category: Functions (CS 1.0)]] | ||
[[Category: Record Variable Functions]] | [[Category: Record Variable Functions]] | ||
[[Category: Record Variable Functions (CS | [[Category: Record Variable Functions (CS v1.0)]] |
Revision as of 20:23, 12 January 2008
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