IsActionRef

From the Oblivion ConstructionSet Wiki
Revision as of 16:12, 7 February 2006 by 10.0.1.94 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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