Difference between revisions of "AddPrimitive"

From GECK

(Created page with "{{Function |origin = JIP |summary = Creates and attaches a geometric primitive to the calling reference, with the specified shape and dimensions. Th...")
 
 
Line 36: Line 36:
 
}}
 
}}
 
==See Also==
 
==See Also==
[[Category:Functions_(JIP)]]
+
[[Category:Functions (JIP)]]
[[Category:Miscellaneous Functions (JIP)]]
+
[[Category:Misc Reference Functions (JIP)]]

Latest revision as of 01:58, 29 March 2017

A function added by the JIP NVSE Plugin.

Description

Creates and attaches a geometric primitive to the calling reference, with the specified shape and dimensions.

This function will only work on:

1. Activator-type objects - in which case the primitive will function as a cubic/spherical activator (trigger) - or

2. A CollisionMarker - in which case the primitive will function as a collision plane/box/sphere.

Syntax

(success:0/1) reference.AddPrimitive shapeType:int{1-3} boundX:float boundY:float boundZ:float

Primitive Shape Types

1	Box
2	Sphere
3	Plane (collision only)

Example

activatorRef.AddPrimitive 1 300 500 200
set rMarker to PlaceAtMe CollisionMarker 1
rMarker.AddPrimitive 3 250 0 250

See Also

Personal tools