Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

changes to PRIM_TYPE, PRIM_TYPE_BOX question

splat1 Edison
Registerd Nut
Join date: 6 Sep 2004
Posts: 353
09-09-2004 20:52
ok i know since 1.5 the was you handle
PRIM_TYPE, PRIM_TYPE_BOX,
has changed so how would i go about getting this to work now ?

PRIM_TYPE, PRIM_TYPE_BOX, <0, 1, 0>, 0.0, 0.0, <0.333333, 1, 0>, ZERO_VECTOR,

thanks for all your help splat.
Lazarus Lumiere
Registered User
Join date: 4 Jun 2004
Posts: 106
09-09-2004 21:44
from the Wiki:

CODE
[PRIM_TYPE, PRIM_TYPE_BOX, PRIM_HOLE_DEFAULT , <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]

integer holeshape, vector cut, float hollow, vector twist, vector topsize, vector topshear


Holeshape was added in 1.5 (I think), and it can be:

CODE
PRIM_HOLE_DEFAULT 	Match the prim type (square for box, circle for cylinder, etc.)
PRIM_HOLE_SQUARE Square
PRIM_HOLE_CIRCLE Circle
PRIM_HOLE_TRIANGLE Triangle


Hope that helps!
_____________________
"Don't try to have the last word. You might get it."
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-10-2004 00:01
*cough*
cheat
replace PRIM_TYPE with 1

1, PRIM_TYPE_BOX, <0, 1, 0>, 0.0, 0.0, <0.333333, 1, 0>, ZERO_VECTOR,
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
splat1 Edison
Registerd Nut
Join date: 6 Sep 2004
Posts: 353
09-10-2004 07:18
thanks, owe you a copy of my display with im finished :)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-10-2004 10:37
they will eventualy i guess remove the old PRIM_TYPE flag... i only recommended it to avoid hastle for you... Just be aware that some day you script may stop working but i guess that same thing applies for every script.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-10-2004 11:29
they will eventualy i guess remove the old PRIM_TYPE flag... i only recommended it to avoid hastle for you... Just be aware that some day you script may stop working but i guess that same thing applies for every script.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey