llGetLinkNumber
LSLinteger llGetLinkNumber()
Returns the link number of the prim containing the script (0 means not linked, 1 the prim is the root, 2 the prim is the first child, etc.).\ Returns the link number of the prim containing the script. 0 means no link, 1 the root, 2 for first child, etc.
Takes no parameters.
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.
More in LSL
void llMakeExplosion(integer particles, float scale, float vel, float lifetime, float arc, string texture, vector offset)
list llGetParcelPrimOwners(vector pos)
integer llGetStartParameter()
void llSleep(float sec)
void llReleaseCamera(string avatar)
void llSensorRemove()
void llSetForceAndTorque(vector force, vector torque, integer local)
string llGetNotecardLineSync(string name, integer line)