Difference between revisions of "IsActionRef"
Jump to navigation
Jump to search
imported>Mikla m |
imported>Ez0n3 |
||
Line 1: | Line 1: | ||
{{Function | |||
IsActionRef ObjectRefID | |CSWikiPage = IsActionRef | ||
|origin = GECK1 | |||
IsActionRef player | |summary = Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator. | ||
|name = IsActionRef | |||
|returnVal = 0, 1 | |||
|returnType = int | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = ObjectRefID | |||
}} | |||
|example = | |||
IsActionRef player | |||
begin OnActivate | |||
if IsActionRef Player == 1 | |||
if IsActionRef | |||
MessageBox "You can't activate me!" | MessageBox "You can't activate me!" | ||
else | else | ||
Line 15: | Line 20: | ||
endif | endif | ||
end | end | ||
}} | |||
==See Also== | |||
[[GetActionRef]] | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | [[Category:Functions (GECK 1.1)]] | ||
[[Category:Object Functions]] | [[Category:Object Functions]] | ||
[[Category:Object Functions (GECK 1.1)]] | [[Category:Object Functions (GECK 1.1)]] |
Revision as of 07:25, 11 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 ObjectRefID
Example
IsActionRef player
begin OnActivate if IsActionRef Player == 1 MessageBox "You can't activate me!" else Activate endif end