IsActionRef

From the Fallout3 GECK Wiki
Revision as of 12:02, 12 August 2009 by imported>Geckbot (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
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