IsActionRef
From The Elder Scrolls Construction Set Wiki
Syntax:
(bool) IsActionRef ObjectRefID
Useful only inside an OnActivate block. Returns true if the specified ObjectRefID was the activator.
[edit] Example
begin OnActivate
if IsActionRef player == 1
MessageBox "You can't activate me, sucka!"
else
Activate
endif
end

