Difference between revisions of "IsActionRef"
Jump to navigation
Jump to search
imported>Ez0n3 |
imported>Ez0n3 |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = ActorRefID | ||
|Type = ref | |||
}} | }} | ||
|example = | |example = | ||
IsActionRef player | |||
begin OnActivate | |||
if IsActionRef Player == 1 | if IsActionRef Player == 1 | ||
MessageBox "You can't activate me!" | MessageBox "You can't activate me!" | ||
Line 23: | Line 24: | ||
==See Also== | ==See Also== | ||
[[GetActionRef]] | *[[GetActionRef]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 04:24, 15 January 2011
< [[::Category:Functions|Category:Functions]]
Link to TES4 Construction Set Wiki: IsActionRef.
A function included in the GECK version 1.1.0.36.
Description
Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator.
Syntax
(0, 1:int) IsActionRef ActorRefID:ref
Example
IsActionRef player
begin OnActivate if IsActionRef Player == 1 MessageBox "You can't activate me!" else Activate endif end