ToggleObjectCollision

From GECK

Revision as of 11:45, 20 May 2016 by Jazzisparis (Talk | contribs) (Created page with "{{Function |origin = JIP |summary = Disables/enables '''Collision''' geometry (if any) on the calling object reference. |name = ToggleObjectCollision |referenceType = refe...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A function added by the JIP NVSE Plugin.

Description

Disables/enables Collision geometry (if any) on the calling object reference.

Syntax

reference.ToggleObjectCollision toggleState:0/1

Example

objectRef.ToggleObjectCollision 0

Notes

  • This function will affect ANY other objects in the game using the same world model as the calling reference. However, while the calling reference will be effected immediately, other objects will only be effected once their 3D is reloaded by the game. For this reason, when using this function to disable an object's collision, it would probably be wise to re-enable it once the player has moved to another cell.
  • This function has no effect on actors.

See Also

Personal tools