IsActionRef

From the Oblivion ConstructionSet Wiki
Revision as of 12:41, 20 June 2008 by imported>Vswe (Added Search Terms)
Jump to navigation Jump to search

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