
I used to know a snippet of code but cannot remember it.
Does anyone know the code for setting rotation and position of an object on sim start-up?
THANKS!
Code: Select all
changed(integer why)
{
if (why & CHANGED_REGION_START)
{
llSetRot(blah);
}
}
I’ll give this a try next time I’m on and let you know either wayIain McCracken wrote: ↑Sat Jun 25, 2022 5:03 pmYou can use the "changed" event to detect sim restart using the "CHANGED_REGION_START" constant... So, this code inside the root prim of the door might be something like what you're looking for. I don't have a live sim right now so I can't test the sim restart on oar upload.
Code: Select all
changed(integer why) { if (why & CHANGED_REGION_START) { llSetRot(blah); } }
Is it part of a linkset?Lunk Portal wrote: ↑Mon Jun 27, 2022 5:54 pmYeah, I can't seem to get this to work...my script skills are weak LOL