Difference between revisions of "IsActionRef"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Henning
 
imported>Haama
m (Removing space to prevent sorting bug)
Line 15: Line 15:
   endif  
   endif  
  end  
  end  
[[Category: Functions]]
[[Category:Functions]]
[[Category: Object Functions]]
[[Category:Object Functions]]

Revision as of 13:06, 15 December 2008

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