Scripting - lickx/opensim-lickx GitHub Wiki
Changes as compared to upstream OpenSim
It is wise to not use these new features in scripts that are going to be run while abroad on the hypergrid, ie. in attachments. Other sims may run other versions of OpenSim that do not have these features, resulting in the script not being able to compile or run at all.
Constants
Caution: For portability with upstream, use the actual value of the constant in your script, not its name.
Functions
llGetEnv
- "region_rating" -> Returns region maturity rating, without having to use the dataserver (on par with SL)
- "grid" -> Returns grid name (on par with SL)
- "mailname" -> Returns hostname part for e-mail addres of inworld objects (new)
llApplyImpulse, llSetVelocity, llSetAngularVelocity
- The local parameter is respected (on par with SL)
Caution: For portability with upstream, when wanting to use local=TRUE (which is only available in lickx), multiply the vector with llGetRot(), and set local to FALSE. For example: llApplyImpulse((myvector*llGetRot()), FALSE);
llGetTimeOfDay, llGetRegionTimeOfDay
- Now takes into account resp. parcel environment and region environment (on par with SL)
string lxGetAgentViewer(key aviKey) (new)
- Returns the viewer used by agent aviKey