Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Phantom Object Question

Jaas McKinley
Registered User
Join date: 6 Jul 2006
Posts: 8
07-12-2006 10:02
Once an object has a flexible path associated with it, say wind and gravity, will it stay that way for ever? Meaning, Can I add something in the script, that will when touched, change the object to a non-phantom object, rigid, and perform actions from there and then once the action is complete go back to being a phantom object?

Just curious...
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
07-13-2006 22:03
From: Jaas McKinley
Once an object has a flexible path associated with it, say wind and gravity, will it stay that way for ever? Meaning, Can I add something in the script, that will when touched, change the object to a non-phantom object, rigid, and perform actions from there and then once the action is complete go back to being a phantom object?

Just curious...


Since no one else has answered...

Sure. I think so. I haven't had a chance to play with flexi yet, but

CODE
llSetPrimitiveParams( [PRIM_FLEXIBLE, FALSE, blah, blah, blah ] );


should turn it off and

CODE
llSetPrimitiveParams( [PRIM_FLEXIBLE, TRUE, blah, blah, blah ] );


can be used to turn it back on.

See the wiki entry for llSetPrimitiveParams for details.
_____________________
Prim Composer for 3dsMax
-- complete offline builder for prims and sculpties in 3ds Max
http://liferain.com/downloads/primcomposer/

Hierarchical Prim Archive (HPA)
-- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools.
https://liferain.com/projects/hpa