IsActionRef

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

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

Syntax

[help]
(0, 1:int) IsActionRef ActorRefID:ref

Example

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

See Also