Difference between revisions of "IsActionRef"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(CS 1.0)
imported>DragoonWraith
Line 17: Line 17:
[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (CS 1.0)]]
[[Category: Functions (CS 1.0)]]
[[Category: Object Functions]]
[[Category: Inventory Functions]]
[[Category: Inventory Functions (CS 1.0)]]

Revision as of 21:12, 15 August 2007

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