IsActionRef

Revision as of 02:19, 13 October 2008 by imported>Antares (Created a See Also section, added a link to GetActionRef because I was on this page and wanted to go there and couldn't do it as conveniently as I would have liked.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

(bool) IsActionRef ObjectRefID 

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

ExampleEdit

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

See AlsoEdit

GetActionRef