Difference between revisions of "IsActionRef"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Fella
imported>DragoonWraith
(formatting)
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
  IsActionRef ObjectRefID  
  (bool) IsActionRef ObjectRefID  
'''Example:'''
IsActionRef player


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


For example:
== Example ==
 
  begin OnActivate  
  begin OnActivate  
   if IsActionRef player == 1  
   if IsActionRef player == 1  

Revision as of 21:57, 21 March 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