Talk:OsTeleportAgent

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Question about example)
 
 
Line 1: Line 1:
 
== Error in script example? ==
 
== Error in script example? ==
All three variants given for the '''osTeleportAgent''' function specify a "string" as the first parameter.
+
All three variants given for this function specify a "string" as the first parameter.
  
 
:osTeleportAgent('''string agent''', vector position, vector lookat)
 
:osTeleportAgent('''string agent''', vector position, vector lookat)
  
Yet, in the example script the function in the touch_start event handler calls up a key (from first line in that handler).   
+
Yet, in the example script the function calls up a key.   
 
:'''key avatar''' = llDetectedKey(0);
 
:'''key avatar''' = llDetectedKey(0);
 
:...
 
:...
 
:osTeleportAgent('''avatar''', Destination, LandingPoint, LookAt);  
 
:osTeleportAgent('''avatar''', Destination, LandingPoint, LookAt);  
  
This fxn is not working for me. I have also read  [http://forums.osgrid.org/viewtopic.php?f=5&t=2711&hilit=warppos this thread at OSGrid forum].
 
 
[[User:Azwaldo|Azwaldo]] 19:24, 23 December 2011 (PST)
 
[[User:Azwaldo|Azwaldo]] 19:24, 23 December 2011 (PST)

Latest revision as of 19:39, 24 December 2011

[edit] Error in script example?

All three variants given for this function specify a "string" as the first parameter.

osTeleportAgent(string agent, vector position, vector lookat)

Yet, in the example script the function calls up a key.

key avatar = llDetectedKey(0);
...
osTeleportAgent(avatar, Destination, LandingPoint, LookAt);

Azwaldo 19:24, 23 December 2011 (PST)

Personal tools
General
About This Wiki