Difference between revisions of "IsActionRef"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
imported>Ez0n3 |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Function | |||
IsActionRef ObjectRefID | |CSWikiPage = IsActionRef | ||
|origin = GECK1 | |||
|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 = ActorRefID | |||
|Type = ref | |||
}} | |||
|example = | |||
IsActionRef player | IsActionRef player | ||
begin OnActivate | begin OnActivate | ||
if IsActionRef | if IsActionRef Player == 1 | ||
MessageBox "You can't activate me | MessageBox "You can't activate me!" | ||
else | else | ||
Activate | Activate | ||
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)]] |
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