OsKickAvatar

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Indentation)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Implemented December 30,2009 by Revolution in GIT# 87959464c9db8948bed89909913400bc2eb7524d - Rev 11850'''
+
{{osslfunc
<source lang="lsl">
+
|threat_level=Severe
  default
+
|permissions=${OSSL&#124;osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
  {
+
|delay=0
    state_entry()
+
|function_syntax=void osKickAvatar(string FirstName,string SurName, string alert) <br />
    {
+
void osKickAvatar(key agentId, string alert)
        osKickAvatar("AvatarFirst","AvatarLast","You have been kicked!");
+
|ossl_example=<source lang="lsl">
    }
+
//
  }
+
// osKickAvatar Script Example
 +
//
 +
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        llSay(PUBLIC_CHANNEL, "Touch to see osKickAvatar usage.");
 +
    }
 +
 +
    touch_start(integer number)
 +
    {
 +
        osKickAvatar("AvatarFirst", "AvatarLast", "You have been kicked!");
 +
    }
 +
}
 
</source>
 
</source>
 +
|description = Kicks the selected avatar, closing its connection.
  
'''osKickAvatar'''(string FirstName,string SurName,string alert)
+
Agent key argument version added February 20, 2019
 
+
|
This is the same thing as the console command, but I thought it would be useful inworld. Threat level: Severe.
+
}}
 
+
 
+
[[Category:OSSL]]
+

Latest revision as of 13:13, 24 November 2020

void osKickAvatar(string FirstName,string SurName, string alert)

void osKickAvatar(key agentId, string alert)

Kicks the selected avatar, closing its connection.

Agent key argument version added February 20, 2019

Threat Level Severe
Permissions ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osKickAvatar Script Example
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osKickAvatar usage.");
    }
 
    touch_start(integer number) 
    {
        osKickAvatar("AvatarFirst", "AvatarLast", "You have been kicked!");
    }
}
Personal tools
General
About This Wiki