SetInteractionDisabled

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Disables/enables interaction with the calling reference, or (optional) Base Form, by the player character.

When interaction is disabled, the player will not be able to "activate" the object, and no rollover-text will be shown when the object is pointed at with the crosshair.

Syntax

[help]
reference.SetInteractionDisabled disable:0/1 baseForm:ref

Example

objectRef.SetInteractionDisabled 1
SetInteractionDisabled 1 CraigBoone 

Notes

  • This function does not affect scripted activation: objectRef.Activate player will still work normally.
  • When passing a base form, the effects will be applied on ANY reference of that base form.
  • The function persists through the game session.

See Also