Difference between revisions of "ToggleObjectCollision"

From GECK

(Created page with "{{Function |origin = JIP |summary = Disables/enables '''Collision''' geometry (if any) on the calling object reference. |name = ToggleObjectCollision |referenceType = refe...")
 
 
Line 16: Line 16:
 
==See Also==
 
==See Also==
 
[[Category:Functions (JIP)]]
 
[[Category:Functions (JIP)]]
[[Category:Miscellaneous Functions (JIP)]]
+
[[Category:Misc Reference Functions (JIP)]]

Latest revision as of 02:09, 29 March 2017

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