Difference between revisions of "IsActionRef"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(misc function)
imported>Vswe
m (Added Search Terms)
Line 17: Line 17:
[[Category: Miscellaneous Functions]]
[[Category: Miscellaneous Functions]]
[[Category: Miscellaneous Functions (CS 1.0)]]
[[Category: Miscellaneous Functions (CS 1.0)]]
<!-- Begin Search Terms
Is
Action
Ref
End Search Terms -->

Revision as of 12:41, 20 June 2008

Syntax:

(bool) IsActionRef ObjectRefID 

Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator.

Example

begin OnActivate 
  if IsActionRef player == 1 
     MessageBox "You can't activate me, sucka!" 
  else 
     Activate 
  endif 
end