Difference between revisions of "Talk:LlGetAgentInfo"

From Second Life Wiki
Jump to navigation Jump to search
m (Replaced deprecated <lsl> with <syntaxhighlight>; added flagging an unsigned comment by Strife Onizuka)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
I have a question, not sure if I should ask it here or on the forum, but I guess info would help others. Could someone create an "Example" converting the integer bitfield to actual text, like "is flying"? Is there a way to do it without using: if variable = 6, then llSay "avatar status"? Thanks and/or sorry. --[[User:Sirius Newbold|Sirius Newbold]] 20:18, 8 May 2007 (PDT)
I have a question, not sure if I should ask it here or on the forum, but I guess info would help others. Could someone create an "Example" converting the integer bitfield to actual text, like "is flying"? Is there a way to do it without using: if variable = 6, then llSay "avatar status"? Thanks and/or sorry. --[[User:Sirius Newbold|Sirius Newbold]] 20:18, 8 May 2007 (PDT)
:Maybe some userdefined function like
:<syntaxhighlight lang="lsl2">decode_status(integer int){
list status = ["is flying or hovering","has attachments","has scripted attachments","is in mouselook",
"is sitting","is sitting on an object","is in \"away\" mode", "is walking","is in the air (jumping/flying)",
"is typing","is crouching","is in \"busy\" mode","has running (\"Always Run\") enabled, or is using tap-tap-hold"];
string helper = "Agent ";
integer i = 0;
for (;i < 13; i++){
if (int & (1 << i)) helper += llList2String(status, i) + ", ";
}
llOwnerSay(helper);
}</syntaxhighlight>
:? Wrote it in a text editor so I'm not sure if it's working, but I think it should.
:[[Image:Zai_signature.png|45px]] '''[[User:Zai Lynch|Lynch]]''' <sup><small>([[User talk:Zai Lynch|talk]]|[[Special:Contributions/Zai Lynch|contribs]])</small></sup> 15:55, 1 March 2009 (UTC)


== llGetAgentInfo - Gender? ==
== llGetAgentInfo - Gender? ==
Line 9: Line 25:
[[User:Melany Lunasea|ML]]
[[User:Melany Lunasea|ML]]


:There is no way currently to determine the gender of the avatar by script. There have been several feature suggestions made over the years to add this the result of which has been quite heated debate. The most recent suggestion can be found at: {{Jira|SVC-1636}}. The trouble is there are social and emotional consequences of adding this feature. Gender is not as simple as male or female, not in psychology, [http://www.isna.org/faq/what_is_intersex not even in biology]; it cannot be reduced to a binary switch. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 03:29, 1 November 2008 (UTC)
:There is no way currently to determine the gender of the avatar by script. There have been several feature suggestions made over the years to add this the result of which has been quite heated debate. The most recent suggestion can be found at: {{Jira|SVC-1636}}. The trouble is there are social and emotional consequences of adding this feature. Gender is not as simple as male or female, not in psychology, [http://www.isna.org/faq/what_is_intersex not even in biology]. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 03:29, 1 November 2008 (UTC)
 
: It is supported by the Restraint Life Viewer to read the setting made on account creation or set in the debug dialog. See [[LSL Protocol/RestrainedLifeAPI]]. --[[User:Maike Short|Maike Short]] 22:20, 28 February 2009 (UTC)
 
::[[Alternate_viewers#Marine_Edition|RestrainedLife]] it should be noted is a Third Party viewer. {{unsigned|Strife Onizuka|1 March 2009 17:14}}
 
:::Now it's available essentially on ''all'' {{HoverText|TPVs|Third-Party Viewers}}. — [[User:Gwyneth Llewelyn|Gwyneth Llewelyn]] ([[User talk:Gwyneth Llewelyn|talk]]) 20:13, 13 October 2023 (PDT)
 
== [[AGENT_AUTOPILOT]] ==
 
Jotting this down here because it's not live yet, it's in 1.32 beta.
 
AGENT_AUTOPILOT, 0x2000, avatar is moving under server or client autopilot.
 
Right now, it is only set with "go here" on the ground or double-click autopilot. (There used to be autopilot when avatars sat on prims without targets, but that was removed some time ago and we now leap right on.)  Physics pushes are not currently triggering this.
 
In a future viewer release (possibly 2.0), this will be extended to report on viewer auto movements, particularly the attempt to turn when we select objects. {{Jira|VWR-13202}} for the whys.
 
--[[User:Viktoria Dovgal|Tori]] 03:38, 13 October 2009 (UTC)
 
:Since it's just appeared in the trunk, I've created a stub article for it. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 19:33, 19 October 2009 (UTC)

Latest revision as of 19:13, 13 October 2023

I have a question, not sure if I should ask it here or on the forum, but I guess info would help others. Could someone create an "Example" converting the integer bitfield to actual text, like "is flying"? Is there a way to do it without using: if variable = 6, then llSay "avatar status"? Thanks and/or sorry. --Sirius Newbold 20:18, 8 May 2007 (PDT)

Maybe some userdefined function like
decode_status(integer int){
	list status = ["is flying or hovering","has attachments","has scripted attachments","is in mouselook",
			"is sitting","is sitting on an object","is in \"away\" mode", "is walking","is in the air (jumping/flying)",
			"is typing","is crouching","is in \"busy\" mode","has running (\"Always Run\") enabled, or is using tap-tap-hold"];

	string helper = "Agent ";
	integer i = 0;
	for (;i < 13; i++){
		if (int & (1 << i)) helper += llList2String(status, i) + ", ";
	}
	llOwnerSay(helper);
}
? Wrote it in a text editor so I'm not sure if it's working, but I think it should.
Zai signature.png Lynch (talk|contribs) 15:55, 1 March 2009 (UTC)

llGetAgentInfo - Gender?

In the interest of having dainty ladies not acting like burly males and Vice Versa, is there a way to determine from script the preferred gender of an agent? This mainly for posing/animation purposes.

Regards,

ML

There is no way currently to determine the gender of the avatar by script. There have been several feature suggestions made over the years to add this the result of which has been quite heated debate. The most recent suggestion can be found at: SVC-1636. The trouble is there are social and emotional consequences of adding this feature. Gender is not as simple as male or female, not in psychology, not even in biology. -- Strife (talk|contribs) 03:29, 1 November 2008 (UTC)
It is supported by the Restraint Life Viewer to read the setting made on account creation or set in the debug dialog. See LSL Protocol/RestrainedLifeAPI. --Maike Short 22:20, 28 February 2009 (UTC)
RestrainedLife it should be noted is a Third Party viewer. —The preceding unsigned comment was added on 1 March 2009 17:14 by Strife Onizuka
Now it's available essentially on all TPVs. — Gwyneth Llewelyn (talk) 20:13, 13 October 2023 (PDT)

AGENT_AUTOPILOT

Jotting this down here because it's not live yet, it's in 1.32 beta.

AGENT_AUTOPILOT, 0x2000, avatar is moving under server or client autopilot.

Right now, it is only set with "go here" on the ground or double-click autopilot. (There used to be autopilot when avatars sat on prims without targets, but that was removed some time ago and we now leap right on.) Physics pushes are not currently triggering this.

In a future viewer release (possibly 2.0), this will be extended to report on viewer auto movements, particularly the attempt to turn when we select objects. VWR-13202 for the whys.

--Tori 03:38, 13 October 2009 (UTC)

Since it's just appeared in the trunk, I've created a stub article for it. -- Strife (talk|contribs) 19:33, 19 October 2009 (UTC)