IsActionRef

From the Oblivion ConstructionSet Wiki
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[edit | edit source]

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

See Also[edit | edit source]

GetActionRef