@gwigz/slua-types 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +960 -783
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -11,29 +11,25 @@ declare class Quaternion {
|
|
|
11
11
|
readonly y: number
|
|
12
12
|
readonly z: number
|
|
13
13
|
readonly s: number
|
|
14
|
-
add: LuaAdditionMethod<
|
|
15
|
-
sub: LuaSubtractionMethod<
|
|
16
|
-
mul: LuaMultiplicationMethod<
|
|
17
|
-
div: LuaDivisionMethod<
|
|
18
|
-
neg: LuaNegationMethod<
|
|
14
|
+
add: LuaAdditionMethod<Quaternion, Quaternion>
|
|
15
|
+
sub: LuaSubtractionMethod<Quaternion, Quaternion>
|
|
16
|
+
mul: LuaMultiplicationMethod<Quaternion, Quaternion>
|
|
17
|
+
div: LuaDivisionMethod<Quaternion, Quaternion>
|
|
18
|
+
neg: LuaNegationMethod<Quaternion>
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
declare type quaternion = Quaternion
|
|
22
|
-
|
|
23
21
|
/**
|
|
24
22
|
* A 128‑bit unique identifier formatted as 36 hexadecimal characters (8‑4‑4‑4‑12), e.g. "A822FF2B-FF02-461D-B45D-DCD10A2DE0C2".
|
|
25
23
|
* @customConstructor uuid.create
|
|
26
24
|
*/
|
|
27
25
|
declare class UUID {
|
|
28
|
-
constructor(value: string | undefined | buffer |
|
|
26
|
+
constructor(value: string | undefined | buffer | UUID)
|
|
29
27
|
/** Returns true if the UUID is not the null UUID (all zeros) */
|
|
30
28
|
readonly istruthy: boolean
|
|
31
29
|
/** Returns the raw 16-byte binary string of the UUID, or nil if the UUID is not in a compressed state */
|
|
32
30
|
readonly bytes: string
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
declare type uuid = UUID
|
|
36
|
-
|
|
37
33
|
/**
|
|
38
34
|
* A set of three float values. Used to represent colors (RGB), positions, directions, and velocities.
|
|
39
35
|
* @customConstructor vector.create
|
|
@@ -44,39 +40,37 @@ declare class Vector {
|
|
|
44
40
|
readonly y: number
|
|
45
41
|
readonly z: number
|
|
46
42
|
/** Native component-wise addition */
|
|
47
|
-
add: LuaAdditionMethod<
|
|
43
|
+
add: LuaAdditionMethod<Vector, Vector>
|
|
48
44
|
/** Native component-wise subtraction */
|
|
49
|
-
sub: LuaSubtractionMethod<
|
|
45
|
+
sub: LuaSubtractionMethod<Vector, Vector>
|
|
50
46
|
/** Unary negation */
|
|
51
|
-
neg: LuaNegationMethod<
|
|
47
|
+
neg: LuaNegationMethod<Vector>
|
|
52
48
|
/** Multiplication: vector * vector / number -> vector (Scale), vector * quaternion -> vector (Rotation) */
|
|
53
|
-
mul: LuaMultiplicationMethod<number,
|
|
54
|
-
LuaMultiplicationMethod<
|
|
55
|
-
LuaMultiplicationMethod<
|
|
49
|
+
mul: LuaMultiplicationMethod<number, Vector> &
|
|
50
|
+
LuaMultiplicationMethod<Vector, Vector> &
|
|
51
|
+
LuaMultiplicationMethod<Quaternion, Vector>
|
|
56
52
|
/** Division: vector / number -> vector (Scale), vector / quaternion -> vector (Rotation by inverse) */
|
|
57
|
-
div: LuaDivisionMethod<number,
|
|
58
|
-
LuaDivisionMethod<
|
|
59
|
-
LuaDivisionMethod<
|
|
53
|
+
div: LuaDivisionMethod<number, Vector> &
|
|
54
|
+
LuaDivisionMethod<Vector, Vector> &
|
|
55
|
+
LuaDivisionMethod<Quaternion, Vector>
|
|
60
56
|
/** LSL-style modulo: vector % vector -> vector (Cross Product) */
|
|
61
|
-
mod: LuaModuloMethod<
|
|
57
|
+
mod: LuaModuloMethod<Vector, Vector>
|
|
62
58
|
}
|
|
63
59
|
|
|
64
|
-
declare type vector = Vector
|
|
65
|
-
|
|
66
60
|
/** Event detection class providing access to detected object/avatar information */
|
|
67
61
|
declare interface DetectedEvent {
|
|
68
62
|
readonly index: number
|
|
69
63
|
readonly valid: boolean
|
|
70
64
|
readonly canAdjustDamage: boolean
|
|
71
65
|
/** Changes the amount of damage to be delivered by this damage event. */
|
|
72
|
-
adjustDamage(
|
|
66
|
+
adjustDamage(damage: number): void
|
|
73
67
|
/** Returns a list containing the current damage for the event, the damage type and the original damage delivered. */
|
|
74
68
|
getDamage(): list
|
|
75
69
|
/**
|
|
76
70
|
* Returns the grab offset of a user touching the object.
|
|
77
71
|
* Returns <0.0, 0.0, 0.0> if Number is not a valid object.
|
|
78
72
|
*/
|
|
79
|
-
getGrab():
|
|
73
|
+
getGrab(): Vector
|
|
80
74
|
/**
|
|
81
75
|
* Returns TRUE if detected object or agent Number has the same user group active as this object.
|
|
82
76
|
* It will return FALSE if the object or agent is in the group, but the group is not active.
|
|
@@ -86,7 +80,7 @@ declare interface DetectedEvent {
|
|
|
86
80
|
* Returns the key of detected object or avatar number.
|
|
87
81
|
* Returns NULL_KEY if Number is not a valid index.
|
|
88
82
|
*/
|
|
89
|
-
getKey():
|
|
83
|
+
getKey(): UUID
|
|
90
84
|
/**
|
|
91
85
|
* Returns the link position of the triggered event for touches and collisions only.
|
|
92
86
|
* 0 for a non-linked object, 1 for the root of a linked object, 2 for the first child, etc.
|
|
@@ -102,49 +96,49 @@ declare interface DetectedEvent {
|
|
|
102
96
|
* Returns the key of detected object's owner.
|
|
103
97
|
* Returns invalid key if Number is not a valid index.
|
|
104
98
|
*/
|
|
105
|
-
getOwner():
|
|
99
|
+
getOwner(): UUID
|
|
106
100
|
/**
|
|
107
101
|
* Returns the position of detected object or avatar number.
|
|
108
102
|
* Returns <0.0, 0.0, 0.0> if Number is not a valid index.
|
|
109
103
|
*/
|
|
110
|
-
getPos():
|
|
104
|
+
getPos(): Vector
|
|
111
105
|
/** Returns the key for the rezzer of the detected object. */
|
|
112
|
-
getRezzer():
|
|
106
|
+
getRezzer(): UUID
|
|
113
107
|
/**
|
|
114
108
|
* Returns the rotation of detected object or avatar number.
|
|
115
109
|
* Returns <0.0, 0.0, 0.0, 1.0> if Number is not a valid offset.
|
|
116
110
|
*/
|
|
117
|
-
getRot():
|
|
111
|
+
getRot(): Quaternion
|
|
118
112
|
/**
|
|
119
113
|
* Returns the surface bi-normal for a triggered touch event.
|
|
120
114
|
* Returns a vector that is the surface bi-normal (tangent to the surface) where the touch event was triggered.
|
|
121
115
|
*/
|
|
122
|
-
getTouchBinormal():
|
|
116
|
+
getTouchBinormal(): Vector
|
|
123
117
|
/** Returns the index of the face where the avatar clicked in a triggered touch event. */
|
|
124
118
|
getTouchFace(): number
|
|
125
119
|
/**
|
|
126
120
|
* Returns the surface normal for a triggered touch event.
|
|
127
121
|
* Returns a vector that is the surface normal (perpendicular to the surface) where the touch event was triggered.
|
|
128
122
|
*/
|
|
129
|
-
getTouchNormal():
|
|
123
|
+
getTouchNormal(): Vector
|
|
130
124
|
/**
|
|
131
125
|
* Returns the position, in region coordinates, where the object was touched in a triggered touch event.
|
|
132
126
|
* Unless it is a HUD, in which case it returns the position relative to the attach point.
|
|
133
127
|
*/
|
|
134
|
-
getTouchPos():
|
|
128
|
+
getTouchPos(): Vector
|
|
135
129
|
/**
|
|
136
130
|
* Returns a vector that is the surface coordinates where the prim was touched.
|
|
137
131
|
* The X and Y vector positions contain the horizontal (S) and vertical (T) face coordinates respectively.
|
|
138
132
|
* Each component is in the interval [0.0, 1.0].
|
|
139
133
|
* TOUCH_INVALID_TEXCOORD is returned if the surface coordinates cannot be determined (e.g. when the viewer does not support this function).
|
|
140
134
|
*/
|
|
141
|
-
getTouchST():
|
|
135
|
+
getTouchST(): Vector
|
|
142
136
|
/**
|
|
143
137
|
* Returns a vector that is the texture coordinates for where the prim was touched.
|
|
144
138
|
* The X and Y vector positions contain the U and V face coordinates respectively.
|
|
145
139
|
* TOUCH_INVALID_TEXCOORD is returned if the touch UV coordinates cannot be determined (e.g. when the viewer does not support this function).
|
|
146
140
|
*/
|
|
147
|
-
getTouchUV():
|
|
141
|
+
getTouchUV(): Vector
|
|
148
142
|
/**
|
|
149
143
|
* Returns the type (AGENT, ACTIVE, PASSIVE, SCRIPTED) of detected object.
|
|
150
144
|
* Returns 0 if number is not a valid index.
|
|
@@ -159,74 +153,121 @@ declare interface DetectedEvent {
|
|
|
159
153
|
* Returns the velocity of the detected object Number.
|
|
160
154
|
* Returns<0.0, 0.0, 0.0> if Number is not a valid offset.
|
|
161
155
|
*/
|
|
162
|
-
getVel():
|
|
156
|
+
getVel(): Vector
|
|
163
157
|
}
|
|
164
158
|
|
|
165
159
|
/** @noSelf */
|
|
166
160
|
declare interface LLEventMap {
|
|
161
|
+
/** This event is triggered when a script comes within a defined angle of a target rotation. The range and rotation are set by a call to llRotTarget. */
|
|
167
162
|
at_rot_target: (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
163
|
+
targetNumber: number,
|
|
164
|
+
targetRotation: Quaternion,
|
|
165
|
+
currentRotation: Quaternion,
|
|
171
166
|
) => void
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
/** This event is triggered when the scripted object comes within a defined range of the target position, defined by the llTarget function call. */
|
|
168
|
+
at_target: (targetNumber: number, targetPosition: Vector, currentPosition: Vector) => void
|
|
169
|
+
/** This event is triggered whenever an object is attached or detached from an avatar. If it is attached, the key of the avatar it is attached to is passed in, otherwise NULL_KEY is. */
|
|
170
|
+
attach: (avatarId: UUID) => void
|
|
171
|
+
/** Triggered when various events change the object. The change argument will be a bit-field of CHANGED_* constants. */
|
|
172
|
+
changed: (changed: number) => void
|
|
173
|
+
/** This event is raised while another object, or avatar, is colliding with the object the script is attached to.The number of detected objects is passed to the script. Information on those objects may be gathered via the llDetected* functions. */
|
|
175
174
|
collision: (detected: DetectedEvent[]) => void
|
|
175
|
+
/** This event is raised when another object, or avatar, stops colliding with the object the script is attached to.The number of detected objects is passed to the script. Information on those objects may be gathered via the llDetected* library functions. */
|
|
176
176
|
collision_end: (detected: DetectedEvent[]) => void
|
|
177
|
+
/** This event is raised when another object, or avatar, starts colliding with the object the script is attached to.The number of detected objects is passed to the script. Information on those objects may be gathered via the llDetected* library functions. */
|
|
177
178
|
collision_start: (detected: DetectedEvent[]) => void
|
|
178
|
-
control
|
|
179
|
-
|
|
179
|
+
/** Once a script has the ability to grab control inputs from the avatar, this event will be used to pass the commands into the script.The levels and edges are bit-fields of control constants. */
|
|
180
|
+
control: (avatarId: UUID, levels: number, edges: number) => void
|
|
181
|
+
/** This event is triggered when the requested data is returned to the script.Data may be requested by the llRequestAgentData, llRequestInventoryData, and llGetNotecardLine function calls, for example. */
|
|
182
|
+
dataserver: (requestId: UUID, data: string) => void
|
|
183
|
+
/** This event is triggered when an email sent to this script arrives.The number remaining tells how many more emails are known to be still pending. */
|
|
180
184
|
email: (
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
time: string,
|
|
186
|
+
address: string,
|
|
187
|
+
subject: string,
|
|
188
|
+
body: string,
|
|
189
|
+
numberRemaining: number,
|
|
186
190
|
) => void
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
/** Triggered when an agent has approved an experience permissions request. */
|
|
192
|
+
experience_permissions: (agentId: UUID) => void
|
|
193
|
+
/** Describes why the Experience permissions were denied for the agent. */
|
|
194
|
+
experience_permissions_denied: (agentId: UUID, reason: number) => void
|
|
195
|
+
/** Triggered as damage is applied to an avatar or task, after all on_damage events have been processed. */
|
|
189
196
|
final_damage: (detected: DetectedEvent[]) => void
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
+
/** This event is raised when game controller input changes. */
|
|
198
|
+
game_control: (id: UUID, buttons: number, axes: number[]) => void
|
|
199
|
+
/** Triggered when task receives an HTTP request. */
|
|
200
|
+
http_request: (httpRequestId: UUID, httpMethod: string, body: string) => void
|
|
201
|
+
/** This event handler is invoked when an HTTP response is received for a pending llHTTPRequest request or if a pending request fails or times out. */
|
|
202
|
+
http_response: (httpRequestId: UUID, status: number, metadata: list, body: string) => void
|
|
203
|
+
/** This event is raised when the object the script is attached to is colliding with the ground. */
|
|
204
|
+
land_collision: (position: Vector) => void
|
|
205
|
+
/** This event is raised when the object the script is attached to stops colliding with the ground. */
|
|
206
|
+
land_collision_end: (position: Vector) => void
|
|
207
|
+
/** This event is raised when the object the script is attached to begins to collide with the ground. */
|
|
208
|
+
land_collision_start: (position: Vector) => void
|
|
209
|
+
/** Triggered when object receives a link message via llMessageLinked function call. */
|
|
210
|
+
link_message: (sendersLink: number, value: number, text: string, id: string) => void
|
|
211
|
+
/** Triggered when a script modifies the linkset datastore. */
|
|
197
212
|
linkset_data: (action: number, name: string, value: string) => void
|
|
198
|
-
|
|
199
|
-
|
|
213
|
+
/** This event is raised whenever a chat message matching the constraints set in the llListen command is received. The name and ID of the speaker, as well as the message, are passed in as parameters.Channel 0 is the public chat channel that all avatars see as chat text. Channels 1 through 2,147,483,648 are private channels that are not sent to avatars but other scripts can listen on those channels. */
|
|
214
|
+
listen: (channel: number, name: string, id: UUID, text: string) => void
|
|
215
|
+
/** This event is triggered when a resident has given an amount of Linden dollars to the object. */
|
|
216
|
+
money: (payer: UUID, amount: number) => void
|
|
217
|
+
/** Triggered whenever an object with this script stops moving. */
|
|
200
218
|
moving_end: () => void
|
|
219
|
+
/** Triggered whenever an object with this script starts moving. */
|
|
201
220
|
moving_start: () => void
|
|
221
|
+
/** This event is raised when sensors are active, via the llSensor function call, but are not sensing anything. */
|
|
202
222
|
no_sensor: () => void
|
|
223
|
+
/** When a target is set via the llRotTarget function call, but the script is outside the specified angle this event is raised. */
|
|
203
224
|
not_at_rot_target: () => void
|
|
225
|
+
/** When a target is set via the llTarget library call, but the script is outside the specified range this event is raised. */
|
|
204
226
|
not_at_target: () => void
|
|
205
|
-
|
|
227
|
+
/** Triggered when an object rezzes another object from its inventory via the llRezObject, or similar, functions. The id is the globally unique key for the object rezzed. */
|
|
228
|
+
object_rez: (rezzedObjectsId: UUID) => void
|
|
229
|
+
/** Triggered when an avatar or object receives damage. */
|
|
206
230
|
on_damage: (detected: DetectedEvent[]) => void
|
|
231
|
+
/** Triggered when an avatar reaches 0 health. */
|
|
207
232
|
on_death: () => void
|
|
208
|
-
|
|
209
|
-
|
|
233
|
+
/** Triggered whenever an object is rezzed from inventory or by another object. The start parameter is passed in from the llRezObject call, or zero if from inventory. */
|
|
234
|
+
on_rez: (startParameter: number) => void
|
|
235
|
+
/** This event is called to inform the script of changes within the object's path-finding status. */
|
|
236
|
+
path_update: (type: number, reserved: list) => void
|
|
237
|
+
/**
|
|
238
|
+
* This event is deprecated.
|
|
239
|
+
* @deprecated
|
|
240
|
+
*/
|
|
210
241
|
remote_data: (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
242
|
+
eventType: number,
|
|
243
|
+
channelId: UUID,
|
|
244
|
+
messageId: UUID,
|
|
245
|
+
sender: string,
|
|
246
|
+
iData: number,
|
|
247
|
+
sData: string,
|
|
217
248
|
) => void
|
|
218
|
-
|
|
249
|
+
/** Scripts need permission from either the owner or the avatar they wish to act on before they may perform certain functions, such as debiting money from their owners account, triggering an animation on an avatar, or capturing control inputs. The llRequestPermissions library function is used to request these permissions and the various permissions integer constants can be supplied.The integer returned to this event handler contains the current set of permissions flags, so if permissions equal 0 then no permissions are set. */
|
|
250
|
+
run_time_permissions: (permissionFlags: number) => void
|
|
251
|
+
/** This event is raised whenever objects matching the constraints of the llSensor command are detected.The number of detected objects is passed to the script in the parameter. Information on those objects may be gathered via the llDetected* functions. */
|
|
219
252
|
sensor: (detected: DetectedEvent[]) => void
|
|
253
|
+
/**
|
|
254
|
+
* This event is raised at regular intervals set by the llSetTimerEvent library function.
|
|
255
|
+
* @deprecated Use 'LLTimers' instead.
|
|
256
|
+
*/
|
|
220
257
|
timer: () => void
|
|
258
|
+
/** This event is raised while a user is touching the object the script is attached to.The number of touching objects is passed to the script in the parameter.Information on those objects may be gathered via the llDetected* library functions. */
|
|
221
259
|
touch: (detected: DetectedEvent[]) => void
|
|
260
|
+
/** This event is raised when a user stops touching the object the script is attached to. The number of touches is passed to the script in the parameter.Information on those objects may be gathered via the llDetected* library functions. */
|
|
222
261
|
touch_end: (detected: DetectedEvent[]) => void
|
|
262
|
+
/** This event is raised when a user first touches the object the script is attached to. The number of touches is passed to the script in the parameter.Information on those objects may be gathered via the llDetected() library functions. */
|
|
223
263
|
touch_start: (detected: DetectedEvent[]) => void
|
|
224
|
-
|
|
264
|
+
/** Triggered by llTransferLindenDollars() function. */
|
|
265
|
+
transaction_result: (requestId: UUID, success: number, message: string) => void
|
|
225
266
|
}
|
|
226
267
|
|
|
227
268
|
/** 'rotation' is an alias for 'quaternion' */
|
|
228
|
-
declare type rotation =
|
|
229
|
-
declare type list = (string | number |
|
|
269
|
+
declare type rotation = Quaternion
|
|
270
|
+
declare type list = (string | number | Vector | UUID | Quaternion | boolean)[]
|
|
230
271
|
declare type LLDetectedEventName =
|
|
231
272
|
| "collision"
|
|
232
273
|
| "collision_end"
|
|
@@ -361,22 +402,22 @@ declare function dangerouslyexecuterequiredmodule(f: (this: void, ...args: any[]
|
|
|
361
402
|
* Creates a new uuid from a string, buffer, or existing uuid. Returns nil if the string is not a valid UUID, or the the buffer is shorter than 16 bytes.
|
|
362
403
|
* @noSelf
|
|
363
404
|
*/
|
|
364
|
-
declare function touuid(val: string | undefined | buffer |
|
|
405
|
+
declare function touuid(val: string | undefined | buffer | UUID): UUID | undefined
|
|
365
406
|
/**
|
|
366
407
|
* Converts a string to a vector, returns nil if invalid
|
|
367
408
|
* @noSelf
|
|
368
409
|
*/
|
|
369
|
-
declare function tovector(val: string | undefined |
|
|
410
|
+
declare function tovector(val: string | undefined | Vector): Vector | undefined
|
|
370
411
|
/**
|
|
371
412
|
* Converts a string to a quaternion, returns nil if invalid
|
|
372
413
|
* @noSelf
|
|
373
414
|
*/
|
|
374
|
-
declare function toquaternion(val: string | undefined |
|
|
415
|
+
declare function toquaternion(val: string | undefined | Quaternion): Quaternion | undefined
|
|
375
416
|
/**
|
|
376
417
|
* Converts a string to a rotation (quaternion), returns nil if invalid
|
|
377
418
|
* @noSelf
|
|
378
419
|
*/
|
|
379
|
-
declare function torotation(val: string | undefined |
|
|
420
|
+
declare function torotation(val: string | undefined | Quaternion): Quaternion | undefined
|
|
380
421
|
/**
|
|
381
422
|
* Checks if the value is truthy; if not, raises an error with the optional message.
|
|
382
423
|
* @noSelf
|
|
@@ -907,34 +948,34 @@ declare namespace os {
|
|
|
907
948
|
/** @noSelf */
|
|
908
949
|
declare namespace Quaternion {
|
|
909
950
|
/** Creates a new quaternion with the given component values. */
|
|
910
|
-
export function create(x: number, y: number, z: number, s: number):
|
|
951
|
+
export function create(x: number, y: number, z: number, s: number): Quaternion
|
|
911
952
|
|
|
912
953
|
/** Computes the normalized version (unit quaternion) of the quaternion. */
|
|
913
|
-
export function normalize(q:
|
|
954
|
+
export function normalize(q: Quaternion): Quaternion
|
|
914
955
|
|
|
915
956
|
/** Computes the magnitude of the quaternion. */
|
|
916
|
-
export function magnitude(q:
|
|
957
|
+
export function magnitude(q: Quaternion): number
|
|
917
958
|
|
|
918
959
|
/** Computes the dot product of two quaternions. */
|
|
919
|
-
export function dot(a:
|
|
960
|
+
export function dot(a: Quaternion, b: Quaternion): number
|
|
920
961
|
|
|
921
962
|
/** Spherical linear interpolation from a to b using factor t. */
|
|
922
|
-
export function slerp(a:
|
|
963
|
+
export function slerp(a: Quaternion, b: Quaternion, t: number): Quaternion
|
|
923
964
|
|
|
924
965
|
/** Computes the conjugate of the quaternion. */
|
|
925
|
-
export function conjugate(q:
|
|
966
|
+
export function conjugate(q: Quaternion): Quaternion
|
|
926
967
|
|
|
927
968
|
/** Computes the forward vector from the quaternion. */
|
|
928
|
-
export function tofwd(q:
|
|
969
|
+
export function tofwd(q: Quaternion): Vector
|
|
929
970
|
|
|
930
971
|
/** Computes the left vector from the quaternion. */
|
|
931
|
-
export function toleft(q:
|
|
972
|
+
export function toleft(q: Quaternion): Vector
|
|
932
973
|
|
|
933
974
|
/** Computes the up vector from the quaternion. */
|
|
934
|
-
export function toup(q:
|
|
975
|
+
export function toup(q: Quaternion): Vector
|
|
935
976
|
|
|
936
977
|
/** Identity quaternion constant. */
|
|
937
|
-
export const identity:
|
|
978
|
+
export const identity: Quaternion
|
|
938
979
|
}
|
|
939
980
|
|
|
940
981
|
/** String manipulation library. */
|
|
@@ -1119,67 +1160,73 @@ declare namespace utf8 {
|
|
|
1119
1160
|
/** @noSelf */
|
|
1120
1161
|
declare namespace UUID {
|
|
1121
1162
|
/** Creates a new uuid from a string, buffer, or existing uuid. Throws an error if the string is not a valid UUID, or the the buffer is shorter than 16 bytes. */
|
|
1122
|
-
export function create(value: string | undefined | buffer |
|
|
1163
|
+
export function create(value: string | undefined | buffer | UUID): UUID
|
|
1123
1164
|
}
|
|
1124
1165
|
|
|
1125
1166
|
/** Vector manipuluation library. */
|
|
1126
1167
|
/** @noSelf */
|
|
1127
1168
|
declare namespace Vector {
|
|
1128
1169
|
/** Creates a new vector with the given component values. */
|
|
1129
|
-
export function create(x: number, y: number, z?: number):
|
|
1170
|
+
export function create(x: number, y: number, z?: number): Vector
|
|
1130
1171
|
|
|
1131
1172
|
/** Computes the magnitude of the vector. */
|
|
1132
|
-
export function magnitude(v:
|
|
1173
|
+
export function magnitude(v: Vector): number
|
|
1133
1174
|
|
|
1134
1175
|
/** Computes the normalized version (unit vector) of the vector. */
|
|
1135
|
-
export function normalize(v:
|
|
1176
|
+
export function normalize(v: Vector): Vector
|
|
1136
1177
|
|
|
1137
1178
|
/** Computes the cross product of two vectors. */
|
|
1138
|
-
export function cross(a:
|
|
1179
|
+
export function cross(a: Vector, b: Vector): Vector
|
|
1139
1180
|
|
|
1140
1181
|
/** Computes the dot product of two vectors. */
|
|
1141
|
-
export function dot(a:
|
|
1182
|
+
export function dot(a: Vector, b: Vector): number
|
|
1142
1183
|
|
|
1143
1184
|
/** Computes the angle between two vectors in radians. The axis, if specified, is used to determine the sign of the angle. */
|
|
1144
|
-
export function angle(a:
|
|
1185
|
+
export function angle(a: Vector, b: Vector, axis?: Vector): number
|
|
1145
1186
|
|
|
1146
1187
|
/** Applies math.floor to each component of the vector. */
|
|
1147
|
-
export function floor(v:
|
|
1188
|
+
export function floor(v: Vector): Vector
|
|
1148
1189
|
|
|
1149
1190
|
/** Applies math.ceil to each component of the vector. */
|
|
1150
|
-
export function ceil(v:
|
|
1191
|
+
export function ceil(v: Vector): Vector
|
|
1151
1192
|
|
|
1152
1193
|
/** Applies math.abs to each component of the vector. */
|
|
1153
|
-
export function abs(v:
|
|
1194
|
+
export function abs(v: Vector): Vector
|
|
1154
1195
|
|
|
1155
1196
|
/** Applies math.sign to each component of the vector. */
|
|
1156
|
-
export function sign(v:
|
|
1197
|
+
export function sign(v: Vector): Vector
|
|
1157
1198
|
|
|
1158
1199
|
/** Clamps each component of the vector between min and max values. */
|
|
1159
|
-
export function clamp(v:
|
|
1200
|
+
export function clamp(v: Vector, min: Vector, max: Vector): Vector
|
|
1160
1201
|
|
|
1161
1202
|
/** Applies math.max to each component of the vectors. */
|
|
1162
|
-
export function max(v:
|
|
1203
|
+
export function max(v: Vector, ...args: Vector[]): Vector
|
|
1163
1204
|
|
|
1164
1205
|
/** Applies math.max to each component of the vectors. */
|
|
1165
|
-
export function min(v:
|
|
1206
|
+
export function min(v: Vector, ...args: Vector[]): Vector
|
|
1166
1207
|
|
|
1167
1208
|
/** Linearly interpolates between a and b using factor t. */
|
|
1168
|
-
export function lerp(a:
|
|
1209
|
+
export function lerp(a: Vector, b: Vector, t: number): Vector
|
|
1169
1210
|
|
|
1170
1211
|
/** Constant vector with all components set to 0. */
|
|
1171
|
-
export const zero:
|
|
1212
|
+
export const zero: Vector
|
|
1172
1213
|
/** Constant vector with all components set to 1. */
|
|
1173
|
-
export const one:
|
|
1214
|
+
export const one: Vector
|
|
1174
1215
|
}
|
|
1175
1216
|
|
|
1176
1217
|
/** @noSelf */
|
|
1177
1218
|
declare namespace ll {
|
|
1178
|
-
/**
|
|
1179
|
-
|
|
1219
|
+
/**
|
|
1220
|
+
* Returns the absolute (positive) version of Value.
|
|
1221
|
+
* @deprecated Use 'math.abs' instead. Double precision; fastcall.
|
|
1222
|
+
*/
|
|
1223
|
+
export function Abs(value: number): number
|
|
1180
1224
|
|
|
1181
|
-
/**
|
|
1182
|
-
|
|
1225
|
+
/**
|
|
1226
|
+
* Returns the arc-cosine of Value, in radians.
|
|
1227
|
+
* @deprecated Use 'math.acos' instead. Double precision; fastcall.
|
|
1228
|
+
*/
|
|
1229
|
+
export function Acos(value: number): number
|
|
1183
1230
|
|
|
1184
1231
|
/**
|
|
1185
1232
|
* Add avatar ID to the parcel ban list for the specified number of Hours.
|
|
@@ -1188,93 +1235,101 @@ declare namespace ll {
|
|
|
1188
1235
|
* When values that small are used, it seems the function bans in approximately 30 second increments (Probably 36 second increments, as 0.01 of an hour is 36 seconds).
|
|
1189
1236
|
* Residents teleporting to a parcel where they are banned will be redirected to a neighbouring parcel.
|
|
1190
1237
|
*/
|
|
1191
|
-
export function AddToLandBanList(
|
|
1238
|
+
export function AddToLandBanList(id: UUID, hours: number): void
|
|
1192
1239
|
|
|
1193
1240
|
/** Add avatar ID to the land pass list, for a duration of Hours. */
|
|
1194
|
-
export function AddToLandPassList(
|
|
1241
|
+
export function AddToLandPassList(id: UUID, hours: number): void
|
|
1195
1242
|
|
|
1196
1243
|
/**
|
|
1197
1244
|
* Changes the amount of damage to be delivered by this damage event.
|
|
1198
|
-
* @indexArg
|
|
1245
|
+
* @indexArg number
|
|
1199
1246
|
*/
|
|
1200
|
-
export function AdjustDamage(
|
|
1247
|
+
export function AdjustDamage(number: number, damage: number): void
|
|
1201
1248
|
|
|
1202
1249
|
/**
|
|
1203
1250
|
* Adjusts the volume (0.0 - 1.0) of the currently playing attached sound.
|
|
1204
1251
|
* This function has no effect on sounds started with llTriggerSound.
|
|
1205
1252
|
*/
|
|
1206
|
-
export function AdjustSoundVolume(
|
|
1253
|
+
export function AdjustSoundVolume(volume: number): void
|
|
1207
1254
|
|
|
1208
1255
|
/** Returns TRUE if the agent is in the Experience and the Experience can run in the current location. */
|
|
1209
|
-
export function AgentInExperience(
|
|
1256
|
+
export function AgentInExperience(agentId: UUID): number
|
|
1210
1257
|
|
|
1211
1258
|
/** If Flag == TRUE, users without object modify permissions can still drop inventory items into the object. */
|
|
1212
|
-
export function AllowInventoryDrop(
|
|
1259
|
+
export function AllowInventoryDrop(flag: number): void
|
|
1213
1260
|
|
|
1214
1261
|
/** Returns the angle, in radians, between rotations Rot1 and Rot2. */
|
|
1215
|
-
export function AngleBetween(
|
|
1262
|
+
export function AngleBetween(rot1: Quaternion, rot2: Quaternion): number
|
|
1216
1263
|
|
|
1217
1264
|
/**
|
|
1218
1265
|
* Applies impulse to the object.
|
|
1219
1266
|
* If Local == TRUE, apply the Force in local coordinates; otherwise, apply the Force in global coordinates.
|
|
1220
1267
|
* This function only works on physical objects.
|
|
1221
1268
|
*/
|
|
1222
|
-
export function ApplyImpulse(
|
|
1269
|
+
export function ApplyImpulse(force: Vector, local: number): void
|
|
1223
1270
|
|
|
1224
1271
|
/**
|
|
1225
1272
|
* Applies rotational impulse to the object.
|
|
1226
1273
|
* If Local == TRUE, apply the Force in local coordinates; otherwise, apply the Force in global coordinates.
|
|
1227
1274
|
* This function only works on physical objects.
|
|
1228
1275
|
*/
|
|
1229
|
-
export function ApplyRotationalImpulse(
|
|
1276
|
+
export function ApplyRotationalImpulse(force: Vector, local: number): void
|
|
1230
1277
|
|
|
1231
|
-
/**
|
|
1232
|
-
|
|
1278
|
+
/**
|
|
1279
|
+
* Returns the arc-sine, in radians, of Value.
|
|
1280
|
+
* @deprecated Use 'math.asin' instead. Double precision; fastcall.
|
|
1281
|
+
*/
|
|
1282
|
+
export function Asin(value: number): number
|
|
1233
1283
|
|
|
1234
|
-
/**
|
|
1284
|
+
/**
|
|
1285
|
+
* Returns the arc-tangent2 of y, x.
|
|
1286
|
+
* @deprecated Use 'math.atan2' instead. Double precision; fastcall.
|
|
1287
|
+
*/
|
|
1235
1288
|
export function Atan2(y: number, x: number): number
|
|
1236
1289
|
|
|
1237
1290
|
/**
|
|
1238
1291
|
* Attach to avatar at point AttachmentPoint.
|
|
1239
1292
|
* Requires the PERMISSION_ATTACH runtime permission.
|
|
1240
1293
|
*/
|
|
1241
|
-
export function AttachToAvatar(
|
|
1294
|
+
export function AttachToAvatar(attachmentPoint: number): void
|
|
1242
1295
|
|
|
1243
1296
|
/**
|
|
1244
1297
|
* Follows the same convention as llAttachToAvatar, with the exception that the object will not create new inventory for the user, and will disappear on detach or disconnect.
|
|
1245
1298
|
* Requires the PERMISSION_ATTACH runtime permission.
|
|
1246
1299
|
*/
|
|
1247
|
-
export function AttachToAvatarTemp(
|
|
1300
|
+
export function AttachToAvatarTemp(attachPoint: number): void
|
|
1248
1301
|
|
|
1249
1302
|
/**
|
|
1250
1303
|
* If an avatar is sitting on the link's sit target, return the avatar's key, NULL_KEY otherwise.
|
|
1251
1304
|
* Returns a key that is the UUID of the user seated on the specified link's prim.
|
|
1252
1305
|
*/
|
|
1253
|
-
export function AvatarOnLinkSitTarget(
|
|
1306
|
+
export function AvatarOnLinkSitTarget(linkNumber: number): UUID
|
|
1254
1307
|
|
|
1255
1308
|
/**
|
|
1256
1309
|
* If an avatar is seated on the sit target, returns the avatar's key, otherwise NULL_KEY.
|
|
1257
1310
|
* This only will detect avatars sitting on sit targets defined with llSitTarget.
|
|
1258
1311
|
*/
|
|
1259
|
-
export function AvatarOnSitTarget():
|
|
1312
|
+
export function AvatarOnSitTarget(): UUID
|
|
1260
1313
|
|
|
1261
1314
|
/** Returns the rotation represented by coordinate axes Forward, Left, and Up. */
|
|
1262
|
-
export function Axes2Rot(
|
|
1315
|
+
export function Axes2Rot(forward: Vector, left: Vector, up: Vector): Quaternion
|
|
1263
1316
|
|
|
1264
1317
|
/** Returns the rotation that is a generated Angle about Axis. */
|
|
1265
|
-
export function AxisAngle2Rot(
|
|
1318
|
+
export function AxisAngle2Rot(axis: Vector, angle: number): Quaternion
|
|
1266
1319
|
|
|
1267
1320
|
/**
|
|
1268
1321
|
* Returns an integer that is the Text, Base64 decoded as a big endian integer.
|
|
1269
1322
|
* Returns zero if Text is longer then 8 characters. If Text contains fewer then 6 characters, the return value is unpredictable.
|
|
1323
|
+
* @deprecated Use 'llbase64.decode' and 'string.unpack' or 'buffer.readi32' instead.
|
|
1270
1324
|
*/
|
|
1271
|
-
export function Base64ToInteger(
|
|
1325
|
+
export function Base64ToInteger(text: string): number
|
|
1272
1326
|
|
|
1273
1327
|
/**
|
|
1274
1328
|
* Converts a Base64 string to a conventional string.
|
|
1275
1329
|
* If the conversion creates any unprintable characters, they are converted to question marks.
|
|
1330
|
+
* @deprecated Use 'llbase64.decode' instead.
|
|
1276
1331
|
*/
|
|
1277
|
-
export function Base64ToString(
|
|
1332
|
+
export function Base64ToString(text: string): string
|
|
1278
1333
|
|
|
1279
1334
|
/**
|
|
1280
1335
|
* De-links all prims in the link set.
|
|
@@ -1286,20 +1341,23 @@ declare namespace ll {
|
|
|
1286
1341
|
* De-links the prim with the given link number.
|
|
1287
1342
|
* Requires the PERMISSION_CHANGE_LINKS runtime permission.
|
|
1288
1343
|
*/
|
|
1289
|
-
export function BreakLink(
|
|
1344
|
+
export function BreakLink(linkNumber: number): void
|
|
1290
1345
|
|
|
1291
1346
|
/** Create a list from a string of comma separated values specified in Text. */
|
|
1292
|
-
export function CSV2List(
|
|
1347
|
+
export function CSV2List(text: string): string[]
|
|
1293
1348
|
|
|
1294
1349
|
/**
|
|
1295
1350
|
* Casts a ray into the physics world from 'start' to 'end' and returns data according to details in Options.
|
|
1296
1351
|
* Reports collision data for intersections with objects.
|
|
1297
1352
|
* Return value: [UUID_1, {link_number_1}, hit_position_1, {hit_normal_1}, UUID_2, {link_number_2}, hit_position_2, {hit_normal_2}, ... , status_code] where {} indicates optional data.
|
|
1298
1353
|
*/
|
|
1299
|
-
export function CastRay(
|
|
1354
|
+
export function CastRay(start: Vector, end: Vector, options: list): list
|
|
1300
1355
|
|
|
1301
|
-
/**
|
|
1302
|
-
|
|
1356
|
+
/**
|
|
1357
|
+
* Returns smallest integer value >= Value.
|
|
1358
|
+
* @deprecated Use 'math.ceil' instead. Double precision; fastcall.
|
|
1359
|
+
*/
|
|
1360
|
+
export function Ceil(value: number): number
|
|
1303
1361
|
|
|
1304
1362
|
/** Returns a single character string that is the representation of the unicode value. */
|
|
1305
1363
|
export function Char(value: number): string
|
|
@@ -1310,68 +1368,82 @@ declare namespace ll {
|
|
|
1310
1368
|
*/
|
|
1311
1369
|
export function ClearCameraParams(): void
|
|
1312
1370
|
|
|
1313
|
-
|
|
1371
|
+
/** @deprecated */
|
|
1372
|
+
export function ClearExperience(agentId: UUID, experienceId: UUID): void
|
|
1314
1373
|
|
|
1315
|
-
|
|
1374
|
+
/** @deprecated */
|
|
1375
|
+
export function ClearExperiencePermissions(agentId: UUID): void
|
|
1316
1376
|
|
|
1317
1377
|
/**
|
|
1318
1378
|
* Clears (deletes) the media and all parameters from the given Face on the linked prim.
|
|
1319
1379
|
* Returns an integer that is a STATUS_* flag, which details the success/failure of the operation.
|
|
1320
1380
|
*/
|
|
1321
|
-
export function ClearLinkMedia(
|
|
1381
|
+
export function ClearLinkMedia(link: number, face: number): number
|
|
1322
1382
|
|
|
1323
1383
|
/**
|
|
1324
1384
|
* Clears (deletes) the media and all parameters from the given Face.
|
|
1325
1385
|
* Returns an integer that is a STATUS_* flag which details the success/failure of the operation.
|
|
1326
1386
|
*/
|
|
1327
|
-
export function ClearPrimMedia(
|
|
1387
|
+
export function ClearPrimMedia(face: number): number
|
|
1328
1388
|
|
|
1329
|
-
/**
|
|
1330
|
-
|
|
1389
|
+
/**
|
|
1390
|
+
* This function is deprecated.
|
|
1391
|
+
* @deprecated
|
|
1392
|
+
*/
|
|
1393
|
+
export function CloseRemoteDataChannel(channelId: UUID): void
|
|
1331
1394
|
|
|
1332
|
-
/**
|
|
1333
|
-
|
|
1395
|
+
/**
|
|
1396
|
+
* Returns the cloud density at the object's position + Offset.
|
|
1397
|
+
* @deprecated
|
|
1398
|
+
*/
|
|
1399
|
+
export function Cloud(offset: Vector): number
|
|
1334
1400
|
|
|
1335
1401
|
/** Specify an empty string or NULL_KEY for Accept, to not filter on the corresponding parameter. */
|
|
1336
|
-
export function CollisionFilter(
|
|
1402
|
+
export function CollisionFilter(objectName: string, objectId: UUID, accept: number): void
|
|
1337
1403
|
|
|
1338
1404
|
/**
|
|
1339
1405
|
* Suppress default collision sounds, replace default impact sounds with ImpactSound.
|
|
1340
1406
|
* The ImpactSound must be in the object inventory.
|
|
1341
1407
|
* Supply an empty string to suppress collision sounds.
|
|
1342
1408
|
*/
|
|
1343
|
-
export function CollisionSound(
|
|
1409
|
+
export function CollisionSound(impactSound: string, impactVolume: number): void
|
|
1344
1410
|
|
|
1345
|
-
/**
|
|
1346
|
-
|
|
1411
|
+
/**
|
|
1412
|
+
* Suppress default collision sprites, replace default impact sprite with ImpactSprite; found in the object inventory (empty string to just suppress).
|
|
1413
|
+
* @deprecated
|
|
1414
|
+
*/
|
|
1415
|
+
export function CollisionSprite(impactSprite: string): void
|
|
1347
1416
|
|
|
1348
1417
|
/** Returns hex-encoded Hash string of Message using digest Algorithm. */
|
|
1349
|
-
export function ComputeHash(
|
|
1418
|
+
export function ComputeHash(message: string, algorithm: string): string
|
|
1350
1419
|
|
|
1351
|
-
/**
|
|
1352
|
-
|
|
1420
|
+
/**
|
|
1421
|
+
* Returns the cosine of Theta (Theta in radians).
|
|
1422
|
+
* @deprecated Use 'math.cos' instead. Double precision; fastcall.
|
|
1423
|
+
*/
|
|
1424
|
+
export function Cos(theta: number): number
|
|
1353
1425
|
|
|
1354
1426
|
/**
|
|
1355
1427
|
* Convert link-set to AI/Physics character.
|
|
1356
1428
|
* Creates a path-finding entity, known as a "character", from the object containing the script. Required to activate use of path-finding functions.
|
|
1357
1429
|
* Options is a list of key/value pairs.
|
|
1358
1430
|
*/
|
|
1359
|
-
export function CreateCharacter(
|
|
1431
|
+
export function CreateCharacter(options: list): void
|
|
1360
1432
|
|
|
1361
1433
|
/** Starts an asychronous transaction to create a key-value pair. Will fail with XP_ERROR_STORAGE_EXCEPTION if the key already exists. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is a two element commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will be the value passed to the function. */
|
|
1362
|
-
export function CreateKeyValue(
|
|
1434
|
+
export function CreateKeyValue(key: string, value: string): UUID
|
|
1363
1435
|
|
|
1364
1436
|
/**
|
|
1365
1437
|
* Attempt to link the object the script is in, to target.
|
|
1366
1438
|
* Requires the PERMISSION_CHANGE_LINKS runtime permission.
|
|
1367
1439
|
*/
|
|
1368
|
-
export function CreateLink(
|
|
1440
|
+
export function CreateLink(targetPrim: UUID, parent: number): void
|
|
1369
1441
|
|
|
1370
1442
|
/** Generates a damage event on the targeted agent or task. */
|
|
1371
|
-
export function Damage(target:
|
|
1443
|
+
export function Damage(target: UUID, damage: number, type: number): void
|
|
1372
1444
|
|
|
1373
1445
|
/** Starts an asychronous transaction the request the used and total amount of data allocated for the Experience. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will be the the amount in use and the third item will be the total available. */
|
|
1374
|
-
export function DataSizeKeyValue():
|
|
1446
|
+
export function DataSizeKeyValue(): UUID
|
|
1375
1447
|
|
|
1376
1448
|
/**
|
|
1377
1449
|
* Convert link-set from AI/Physics character to Physics object.
|
|
@@ -1380,30 +1452,30 @@ declare namespace ll {
|
|
|
1380
1452
|
export function DeleteCharacter(): void
|
|
1381
1453
|
|
|
1382
1454
|
/** Starts an asychronous transaction to delete a key-value pair. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is a two element commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will be the value associated with the key. */
|
|
1383
|
-
export function DeleteKeyValue(
|
|
1455
|
+
export function DeleteKeyValue(key: string): UUID
|
|
1384
1456
|
|
|
1385
1457
|
/**
|
|
1386
1458
|
* Removes the slice from start to end and returns the remainder of the list.
|
|
1387
1459
|
* Remove a slice from the list and return the remainder, start and end are inclusive.
|
|
1388
1460
|
* Using negative numbers for start and/or end causes the index to count backwards from the length of the list, so 0, -1 would delete the entire list.
|
|
1389
1461
|
* If Start is larger than End the list deleted is the exclusion of the entries; so 6, 4 would delete the entire list except for the 5th list entry.
|
|
1390
|
-
* @indexArg
|
|
1391
|
-
* @indexArg
|
|
1462
|
+
* @indexArg start
|
|
1463
|
+
* @indexArg end
|
|
1392
1464
|
*/
|
|
1393
|
-
export function DeleteSubList(
|
|
1465
|
+
export function DeleteSubList(source: T[], start: number, end: number): T[]
|
|
1394
1466
|
|
|
1395
1467
|
/**
|
|
1396
1468
|
* Removes the indicated sub-string and returns the result.
|
|
1397
1469
|
* Start and End are inclusive.
|
|
1398
1470
|
* Using negative numbers for Start and/or End causes the index to count backwards from the length of the string, so 0, -1 would delete the entire string.
|
|
1399
1471
|
* If Start is larger than End, the sub-string is the exclusion of the entries; so 6, 4 would delete the entire string except for the 5th character.
|
|
1400
|
-
* @indexArg
|
|
1401
|
-
* @indexArg
|
|
1472
|
+
* @indexArg start
|
|
1473
|
+
* @indexArg end
|
|
1402
1474
|
*/
|
|
1403
|
-
export function DeleteSubString(
|
|
1475
|
+
export function DeleteSubString(source: string, start: number, end: number): string
|
|
1404
1476
|
|
|
1405
1477
|
/** Derezzes an object previously rezzed by a script in this region. Returns TRUE on success or FALSE if the object could not be derezzed. */
|
|
1406
|
-
export function DerezObject(
|
|
1478
|
+
export function DerezObject(id: UUID, flags: number): number
|
|
1407
1479
|
|
|
1408
1480
|
/**
|
|
1409
1481
|
* Remove the object containing the script from the avatar.
|
|
@@ -1413,116 +1485,116 @@ declare namespace ll {
|
|
|
1413
1485
|
|
|
1414
1486
|
/**
|
|
1415
1487
|
* Returns a list containing the current damage for the event, the damage type and the original damage delivered.
|
|
1416
|
-
* @indexArg
|
|
1488
|
+
* @indexArg number
|
|
1417
1489
|
*/
|
|
1418
|
-
export function DetectedDamage(
|
|
1490
|
+
export function DetectedDamage(number: number): list
|
|
1419
1491
|
|
|
1420
1492
|
/**
|
|
1421
1493
|
* Returns the grab offset of a user touching the object.
|
|
1422
1494
|
* Returns <0.0, 0.0, 0.0> if Number is not a valid object.
|
|
1423
|
-
* @indexArg
|
|
1495
|
+
* @indexArg number
|
|
1424
1496
|
*/
|
|
1425
|
-
export function DetectedGrab(
|
|
1497
|
+
export function DetectedGrab(number: number): Vector
|
|
1426
1498
|
|
|
1427
1499
|
/**
|
|
1428
1500
|
* Returns TRUE if detected object or agent Number has the same user group active as this object.
|
|
1429
1501
|
* It will return FALSE if the object or agent is in the group, but the group is not active.
|
|
1430
|
-
* @indexArg
|
|
1502
|
+
* @indexArg number
|
|
1431
1503
|
*/
|
|
1432
|
-
export function DetectedGroup(
|
|
1504
|
+
export function DetectedGroup(number: number): number
|
|
1433
1505
|
|
|
1434
1506
|
/**
|
|
1435
1507
|
* Returns the key of detected object or avatar number.
|
|
1436
1508
|
* Returns NULL_KEY if Number is not a valid index.
|
|
1437
|
-
* @indexArg
|
|
1509
|
+
* @indexArg number
|
|
1438
1510
|
*/
|
|
1439
|
-
export function DetectedKey(
|
|
1511
|
+
export function DetectedKey(number: number): UUID
|
|
1440
1512
|
|
|
1441
1513
|
/**
|
|
1442
1514
|
* Returns the link position of the triggered event for touches and collisions only.
|
|
1443
1515
|
* 0 for a non-linked object, 1 for the root of a linked object, 2 for the first child, etc.
|
|
1444
|
-
* @indexArg
|
|
1516
|
+
* @indexArg number
|
|
1445
1517
|
*/
|
|
1446
|
-
export function DetectedLinkNumber(
|
|
1518
|
+
export function DetectedLinkNumber(number: number): number
|
|
1447
1519
|
|
|
1448
1520
|
/**
|
|
1449
1521
|
* Returns the name of detected object or avatar number.
|
|
1450
1522
|
* Returns the name of detected object number.
|
|
1451
1523
|
* Returns empty string if Number is not a valid index.
|
|
1452
|
-
* @indexArg
|
|
1524
|
+
* @indexArg number
|
|
1453
1525
|
*/
|
|
1454
|
-
export function DetectedName(
|
|
1526
|
+
export function DetectedName(number: number): string
|
|
1455
1527
|
|
|
1456
1528
|
/**
|
|
1457
1529
|
* Returns the key of detected object's owner.
|
|
1458
1530
|
* Returns invalid key if Number is not a valid index.
|
|
1459
|
-
* @indexArg
|
|
1531
|
+
* @indexArg number
|
|
1460
1532
|
*/
|
|
1461
|
-
export function DetectedOwner(
|
|
1533
|
+
export function DetectedOwner(number: number): UUID
|
|
1462
1534
|
|
|
1463
1535
|
/**
|
|
1464
1536
|
* Returns the position of detected object or avatar number.
|
|
1465
1537
|
* Returns <0.0, 0.0, 0.0> if Number is not a valid index.
|
|
1466
|
-
* @indexArg
|
|
1538
|
+
* @indexArg number
|
|
1467
1539
|
*/
|
|
1468
|
-
export function DetectedPos(
|
|
1540
|
+
export function DetectedPos(number: number): Vector
|
|
1469
1541
|
|
|
1470
1542
|
/**
|
|
1471
1543
|
* Returns the key for the rezzer of the detected object.
|
|
1472
|
-
* @indexArg
|
|
1544
|
+
* @indexArg number
|
|
1473
1545
|
*/
|
|
1474
|
-
export function DetectedRezzer(
|
|
1546
|
+
export function DetectedRezzer(number: number): UUID
|
|
1475
1547
|
|
|
1476
1548
|
/**
|
|
1477
1549
|
* Returns the rotation of detected object or avatar number.
|
|
1478
1550
|
* Returns <0.0, 0.0, 0.0, 1.0> if Number is not a valid offset.
|
|
1479
|
-
* @indexArg
|
|
1551
|
+
* @indexArg number
|
|
1480
1552
|
*/
|
|
1481
|
-
export function DetectedRot(
|
|
1553
|
+
export function DetectedRot(number: number): Quaternion
|
|
1482
1554
|
|
|
1483
1555
|
/**
|
|
1484
1556
|
* Returns the surface bi-normal for a triggered touch event.
|
|
1485
1557
|
* Returns a vector that is the surface bi-normal (tangent to the surface) where the touch event was triggered.
|
|
1486
|
-
* @indexArg
|
|
1558
|
+
* @indexArg index
|
|
1487
1559
|
*/
|
|
1488
|
-
export function DetectedTouchBinormal(
|
|
1560
|
+
export function DetectedTouchBinormal(index: number): Vector
|
|
1489
1561
|
|
|
1490
1562
|
/**
|
|
1491
1563
|
* Returns the index of the face where the avatar clicked in a triggered touch event.
|
|
1492
|
-
* @indexArg
|
|
1564
|
+
* @indexArg index
|
|
1493
1565
|
*/
|
|
1494
|
-
export function DetectedTouchFace(
|
|
1566
|
+
export function DetectedTouchFace(index: number): number
|
|
1495
1567
|
|
|
1496
1568
|
/**
|
|
1497
1569
|
* Returns the surface normal for a triggered touch event.
|
|
1498
1570
|
* Returns a vector that is the surface normal (perpendicular to the surface) where the touch event was triggered.
|
|
1499
|
-
* @indexArg
|
|
1571
|
+
* @indexArg index
|
|
1500
1572
|
*/
|
|
1501
|
-
export function DetectedTouchNormal(
|
|
1573
|
+
export function DetectedTouchNormal(index: number): Vector
|
|
1502
1574
|
|
|
1503
1575
|
/**
|
|
1504
1576
|
* Returns the position, in region coordinates, where the object was touched in a triggered touch event.
|
|
1505
1577
|
* Unless it is a HUD, in which case it returns the position relative to the attach point.
|
|
1506
|
-
* @indexArg
|
|
1578
|
+
* @indexArg index
|
|
1507
1579
|
*/
|
|
1508
|
-
export function DetectedTouchPos(
|
|
1580
|
+
export function DetectedTouchPos(index: number): Vector
|
|
1509
1581
|
|
|
1510
1582
|
/**
|
|
1511
1583
|
* Returns a vector that is the surface coordinates where the prim was touched.
|
|
1512
1584
|
* The X and Y vector positions contain the horizontal (S) and vertical (T) face coordinates respectively.
|
|
1513
1585
|
* Each component is in the interval [0.0, 1.0].
|
|
1514
1586
|
* TOUCH_INVALID_TEXCOORD is returned if the surface coordinates cannot be determined (e.g. when the viewer does not support this function).
|
|
1515
|
-
* @indexArg
|
|
1587
|
+
* @indexArg index
|
|
1516
1588
|
*/
|
|
1517
|
-
export function DetectedTouchST(
|
|
1589
|
+
export function DetectedTouchST(index: number): Vector
|
|
1518
1590
|
|
|
1519
1591
|
/**
|
|
1520
1592
|
* Returns a vector that is the texture coordinates for where the prim was touched.
|
|
1521
1593
|
* The X and Y vector positions contain the U and V face coordinates respectively.
|
|
1522
1594
|
* TOUCH_INVALID_TEXCOORD is returned if the touch UV coordinates cannot be determined (e.g. when the viewer does not support this function).
|
|
1523
|
-
* @indexArg
|
|
1595
|
+
* @indexArg index
|
|
1524
1596
|
*/
|
|
1525
|
-
export function DetectedTouchUV(
|
|
1597
|
+
export function DetectedTouchUV(index: number): Vector
|
|
1526
1598
|
|
|
1527
1599
|
/**
|
|
1528
1600
|
* Returns the type (AGENT, ACTIVE, PASSIVE, SCRIPTED) of detected object.
|
|
@@ -1532,16 +1604,16 @@ declare namespace ll {
|
|
|
1532
1604
|
* {
|
|
1533
1605
|
* // ...do stuff with the agent
|
|
1534
1606
|
* }
|
|
1535
|
-
* @indexArg
|
|
1607
|
+
* @indexArg number
|
|
1536
1608
|
*/
|
|
1537
|
-
export function DetectedType(
|
|
1609
|
+
export function DetectedType(number: number): number
|
|
1538
1610
|
|
|
1539
1611
|
/**
|
|
1540
1612
|
* Returns the velocity of the detected object Number.
|
|
1541
1613
|
* Returns<0.0, 0.0, 0.0> if Number is not a valid offset.
|
|
1542
|
-
* @indexArg
|
|
1614
|
+
* @indexArg number
|
|
1543
1615
|
*/
|
|
1544
|
-
export function DetectedVel(
|
|
1616
|
+
export function DetectedVel(number: number): Vector
|
|
1545
1617
|
|
|
1546
1618
|
/**
|
|
1547
1619
|
* Shows a dialog box on the avatar's screen with the message.
|
|
@@ -1556,7 +1628,7 @@ declare namespace ll {
|
|
|
1556
1628
|
* llDialog(who, "This shows only an OK button.", [], -192);
|
|
1557
1629
|
* llDialog(who, "This chats so you can 'hear' it.", ["Hooray"], 0);
|
|
1558
1630
|
*/
|
|
1559
|
-
export function Dialog(
|
|
1631
|
+
export function Dialog(avatarId: UUID, text: string, buttons: string[], channel: number): void
|
|
1560
1632
|
|
|
1561
1633
|
/** Delete the object which holds the script. */
|
|
1562
1634
|
export function Die(): void
|
|
@@ -1565,169 +1637,173 @@ declare namespace ll {
|
|
|
1565
1637
|
* Returns the list as a single string, using Separator between the entries.
|
|
1566
1638
|
* Write the list out as a single string, using Separator between values.
|
|
1567
1639
|
*/
|
|
1568
|
-
export function DumpList2String(
|
|
1640
|
+
export function DumpList2String(source: list, separator: string): string
|
|
1569
1641
|
|
|
1570
1642
|
/**
|
|
1571
1643
|
* Checks to see whether the border hit by Direction from Position is the edge of the world (has no neighboring region).
|
|
1572
1644
|
* Returns TRUE if the line along Direction from Position hits the edge of the world in the current simulator, returns FALSE if that edge crosses into another simulator.
|
|
1573
1645
|
*/
|
|
1574
|
-
export function EdgeOfWorld(
|
|
1646
|
+
export function EdgeOfWorld(position: Vector, direction: Vector): number
|
|
1575
1647
|
|
|
1576
1648
|
/**
|
|
1577
1649
|
* Ejects AvatarID from land that you own.
|
|
1578
1650
|
* Ejects AvatarID from land that the object owner (group or resident) owns.
|
|
1579
1651
|
*/
|
|
1580
|
-
export function EjectFromLand(
|
|
1652
|
+
export function EjectFromLand(avatarId: UUID): void
|
|
1581
1653
|
|
|
1582
1654
|
/**
|
|
1583
1655
|
* Sends email to Address with Subject and Message.
|
|
1584
1656
|
* Sends an email to Address with Subject and Message.
|
|
1585
1657
|
*/
|
|
1586
|
-
export function Email(
|
|
1658
|
+
export function Email(address: string, subject: string, text: string): void
|
|
1587
1659
|
|
|
1588
1660
|
/**
|
|
1589
1661
|
* Returns an escaped/encoded version of url, replacing spaces with %20 etc.
|
|
1590
1662
|
* Returns the string that is the URL-escaped version of URL (replacing spaces with %20, etc.).
|
|
1591
1663
|
* This function returns the UTF-8 encoded escape codes for selected characters.
|
|
1592
1664
|
*/
|
|
1593
|
-
export function EscapeURL(
|
|
1665
|
+
export function EscapeURL(url: string): string
|
|
1594
1666
|
|
|
1595
1667
|
/**
|
|
1596
1668
|
* Returns the rotation representation of the Euler angles.
|
|
1597
1669
|
* Returns the rotation represented by the Euler Angle.
|
|
1598
1670
|
*/
|
|
1599
|
-
export function Euler2Rot(
|
|
1671
|
+
export function Euler2Rot(vector: Vector): Quaternion
|
|
1600
1672
|
|
|
1601
1673
|
/**
|
|
1602
1674
|
* Evade a specified target.
|
|
1603
1675
|
* Characters will (roughly) try to hide from their pursuers if there is a good hiding spot along their fleeing path. Hiding means no direct line of sight from the head of the character (centre of the top of its physics bounding box) to the head of its pursuer and no direct path between the two on the navigation-mesh.
|
|
1604
1676
|
*/
|
|
1605
|
-
export function Evade(
|
|
1677
|
+
export function Evade(targetId: UUID, options: list): void
|
|
1606
1678
|
|
|
1607
1679
|
/**
|
|
1608
1680
|
* Execute a character command.
|
|
1609
1681
|
* Send a command to the path system.
|
|
1610
1682
|
* Currently only supports stopping the current path-finding operation or causing the character to jump.
|
|
1611
1683
|
*/
|
|
1612
|
-
export function ExecCharacterCmd(
|
|
1684
|
+
export function ExecCharacterCmd(command: number, options: list): void
|
|
1613
1685
|
|
|
1614
1686
|
/**
|
|
1615
1687
|
* Returns the positive version of Value.
|
|
1616
1688
|
* Returns the absolute value of Value.
|
|
1689
|
+
* @deprecated Use 'math.abs' instead. Double precision; fastcall.
|
|
1617
1690
|
*/
|
|
1618
|
-
export function Fabs(
|
|
1691
|
+
export function Fabs(value: number): number
|
|
1619
1692
|
|
|
1620
1693
|
/** Searches the text of a cached notecard for lines containing the given pattern and returns the number of matches found through a dataserver event. */
|
|
1621
|
-
export function FindNotecardTextCount(
|
|
1694
|
+
export function FindNotecardTextCount(notecardName: string, pattern: string, options: list): UUID
|
|
1622
1695
|
|
|
1623
1696
|
/**
|
|
1624
1697
|
* Searches the text of a cached notecard for lines containing the given pattern. Returns a list of line numbers and column where a match is found. If the notecard is not inthe cache it returns a list containing a single entry of NAK. If no matches are found anempty list is returned.
|
|
1625
|
-
* @indexArg
|
|
1698
|
+
* @indexArg startMatch
|
|
1626
1699
|
* @indexReturn
|
|
1627
1700
|
*/
|
|
1628
1701
|
export function FindNotecardTextSync(
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1702
|
+
notecardName: string,
|
|
1703
|
+
pattern: string,
|
|
1704
|
+
startMatch: number,
|
|
1705
|
+
count: number,
|
|
1706
|
+
options: list,
|
|
1634
1707
|
): list
|
|
1635
1708
|
|
|
1636
1709
|
/**
|
|
1637
1710
|
* Flee from a point.
|
|
1638
1711
|
* Directs a character (llCreateCharacter) to keep away from a defined position in the region or adjacent regions.
|
|
1639
1712
|
*/
|
|
1640
|
-
export function FleeFrom(
|
|
1713
|
+
export function FleeFrom(source: Vector, distance: number, options: list): void
|
|
1641
1714
|
|
|
1642
|
-
/**
|
|
1643
|
-
|
|
1715
|
+
/**
|
|
1716
|
+
* Returns largest integer value <= Value.
|
|
1717
|
+
* @deprecated Use 'math.floor' instead. Double precision; fastcall.
|
|
1718
|
+
*/
|
|
1719
|
+
export function Floor(value: number): number
|
|
1644
1720
|
|
|
1645
1721
|
/**
|
|
1646
1722
|
* If Enable is TRUE any avatar that sits on this object is forced into mouse-look mode.
|
|
1647
1723
|
* After calling this function with Enable set to TRUE, any agent sitting down on the prim will be forced into mouse-look.
|
|
1648
1724
|
* Just like llSitTarget, this changes a permanent property of the prim (not the object) and needs to be reset by calling this function with Enable set to FALSE in order to disable it.
|
|
1649
1725
|
*/
|
|
1650
|
-
export function ForceMouselook(
|
|
1726
|
+
export function ForceMouselook(enable: number): void
|
|
1651
1727
|
|
|
1652
1728
|
/**
|
|
1653
1729
|
* Returns a pseudo random number in the range [0, Magnitude] or [Magnitude, 0].
|
|
1654
1730
|
* Returns a pseudo-random number between [0, Magnitude].
|
|
1655
1731
|
*/
|
|
1656
|
-
export function Frand(
|
|
1732
|
+
export function Frand(magnitude: number): number
|
|
1657
1733
|
|
|
1658
1734
|
/**
|
|
1659
1735
|
* Generates a key (SHA-1 hash) using UUID generation to create a unique key.
|
|
1660
1736
|
* As the UUID produced is versioned, it should never return a value of NULL_KEY.
|
|
1661
1737
|
* The specific UUID version is an implementation detail that has changed in the past and may change again in the future. Do not depend upon the UUID that is returned to be version 5 SHA-1 hash.
|
|
1662
1738
|
*/
|
|
1663
|
-
export function GenerateKey():
|
|
1739
|
+
export function GenerateKey(): UUID
|
|
1664
1740
|
|
|
1665
1741
|
/**
|
|
1666
1742
|
* Returns the acceleration of the object relative to the region's axes.
|
|
1667
1743
|
* Gets the acceleration of the object.
|
|
1668
1744
|
*/
|
|
1669
|
-
export function GetAccel():
|
|
1745
|
+
export function GetAccel(): Vector
|
|
1670
1746
|
|
|
1671
1747
|
/**
|
|
1672
1748
|
* Returns an integer bit-field containing the agent information about id.
|
|
1673
1749
|
* Returns AGENT_FLYING, AGENT_ATTACHMENTS, AGENT_SCRIPTED, AGENT_SITTING, AGENT_ON_OBJECT, AGENT_MOUSELOOK, AGENT_AWAY, AGENT_BUSY, AGENT_TYPING, AGENT_CROUCHING, AGENT_ALWAYS_RUN, AGENT_WALKING, AGENT_IN_AIR and/or AGENT_FLOATING_VIA_SCRIPTED_ATTACHMENT.
|
|
1674
1750
|
* Returns information about the given agent ID as a bit-field of agent info constants.
|
|
1675
1751
|
*/
|
|
1676
|
-
export function GetAgentInfo(
|
|
1752
|
+
export function GetAgentInfo(avatarId: UUID): number
|
|
1677
1753
|
|
|
1678
1754
|
/**
|
|
1679
1755
|
* Returns the language code of the preferred interface language of the avatar.
|
|
1680
1756
|
* Returns a string that is the language code of the preferred interface language of the resident.
|
|
1681
1757
|
*/
|
|
1682
|
-
export function GetAgentLanguage(
|
|
1758
|
+
export function GetAgentLanguage(avatarId: UUID): string
|
|
1683
1759
|
|
|
1684
1760
|
/**
|
|
1685
1761
|
* Requests a list of agents currently in the region, limited by the scope parameter.
|
|
1686
1762
|
* Returns a list [key UUID-0, key UUID-1, ..., key UUID-n] or [string error_msg] - returns avatar keys for all agents in the region limited to the area(s) specified by scope
|
|
1687
1763
|
*/
|
|
1688
|
-
export function GetAgentList(
|
|
1764
|
+
export function GetAgentList(scope: number, options: list): UUID[]
|
|
1689
1765
|
|
|
1690
1766
|
/**
|
|
1691
1767
|
* If the avatar is in the same region, returns the size of the bounding box of the requested avatar by id, otherwise returns ZERO_VECTOR.
|
|
1692
1768
|
* If the agent is in the same region as the object, returns the size of the avatar.
|
|
1693
1769
|
*/
|
|
1694
|
-
export function GetAgentSize(
|
|
1770
|
+
export function GetAgentSize(avatarId: UUID): Vector
|
|
1695
1771
|
|
|
1696
1772
|
/**
|
|
1697
1773
|
* Returns the alpha value of Face.
|
|
1698
1774
|
* Returns the 'alpha' of the given face. If face is ALL_SIDES the value returned is the mean average of all faces.
|
|
1699
1775
|
*/
|
|
1700
|
-
export function GetAlpha(
|
|
1776
|
+
export function GetAlpha(face: number): number
|
|
1701
1777
|
|
|
1702
1778
|
/**
|
|
1703
1779
|
* Returns the name of the currently playing locomotion animation for the avatar id.
|
|
1704
1780
|
* Returns the currently playing animation for the specified avatar ID.
|
|
1705
1781
|
*/
|
|
1706
|
-
export function GetAnimation(
|
|
1782
|
+
export function GetAnimation(avatarId: UUID): string
|
|
1707
1783
|
|
|
1708
1784
|
/**
|
|
1709
1785
|
* Returns a list of keys of playing animations for an avatar.
|
|
1710
1786
|
* Returns a list of keys of all playing animations for the specified avatar ID.
|
|
1711
1787
|
*/
|
|
1712
|
-
export function GetAnimationList(
|
|
1788
|
+
export function GetAnimationList(avatarId: UUID): UUID[]
|
|
1713
1789
|
|
|
1714
1790
|
/**
|
|
1715
1791
|
* Returns a string that is the name of the animation that is used for the specified animation state.
|
|
1716
1792
|
* Requires the PERMISSION_OVERRIDE_ANIMATIONS or PERMISSION_TRIGGER_ANIMATION runtime permission (automatically granted to attached objects).
|
|
1717
1793
|
*/
|
|
1718
|
-
export function GetAnimationOverride(
|
|
1794
|
+
export function GetAnimationOverride(animationState: string): string
|
|
1719
1795
|
|
|
1720
1796
|
/** Returns the object's attachment point, or 0 if not attached. */
|
|
1721
1797
|
export function GetAttached(): number
|
|
1722
1798
|
|
|
1723
1799
|
/** Returns a list of keys of all visible (not HUD) attachments on the avatar identified by the ID argument */
|
|
1724
|
-
export function GetAttachedList(
|
|
1800
|
+
export function GetAttachedList(id: UUID): UUID[]
|
|
1725
1801
|
|
|
1726
1802
|
/** Retrieves a list of attachments on an avatar. */
|
|
1727
|
-
export function GetAttachedListFiltered(
|
|
1803
|
+
export function GetAttachedListFiltered(agentId: UUID, options: list): UUID[]
|
|
1728
1804
|
|
|
1729
1805
|
/** Returns the bounding box around the object (including any linked prims) relative to its root prim, as a list in the format [ (vector) min_corner, (vector) max_corner ]. */
|
|
1730
|
-
export function GetBoundingBox(
|
|
1806
|
+
export function GetBoundingBox(id: UUID): Vector[]
|
|
1731
1807
|
|
|
1732
1808
|
/** Returns the current camera aspect ratio (width / height) of the agent who has granted the scripted object PERMISSION_TRACK_CAMERA permissions. If no permissions have been granted: it returns zero. */
|
|
1733
1809
|
export function GetCameraAspect(): number
|
|
@@ -1739,31 +1815,31 @@ declare namespace ll {
|
|
|
1739
1815
|
* Returns the current camera position for the agent the task has permissions for.
|
|
1740
1816
|
* Returns the position of the camera, of the user that granted the script PERMISSION_TRACK_CAMERA. If no user has granted the permission, it returns ZERO_VECTOR.
|
|
1741
1817
|
*/
|
|
1742
|
-
export function GetCameraPos():
|
|
1818
|
+
export function GetCameraPos(): Vector
|
|
1743
1819
|
|
|
1744
1820
|
/** Returns the current camera orientation for the agent the task has permissions for. If no user has granted the PERMISSION_TRACK_CAMERA permission, returns ZERO_ROTATION. */
|
|
1745
|
-
export function GetCameraRot():
|
|
1821
|
+
export function GetCameraRot(): Quaternion
|
|
1746
1822
|
|
|
1747
1823
|
/** Returns the prim's centre of mass (unless called from the root prim, where it returns the object's centre of mass). */
|
|
1748
|
-
export function GetCenterOfMass():
|
|
1824
|
+
export function GetCenterOfMass(): Vector
|
|
1749
1825
|
|
|
1750
1826
|
/**
|
|
1751
1827
|
* Get the closest navigable point to the point provided.
|
|
1752
1828
|
* The function accepts a point in region-local space (like all the other path-finding methods) and returns either an empty list or a list containing a single vector which is the closest point on the navigation-mesh to the point provided.
|
|
1753
1829
|
*/
|
|
1754
|
-
export function GetClosestNavPoint(
|
|
1830
|
+
export function GetClosestNavPoint(point: Vector, options: list): Vector[]
|
|
1755
1831
|
|
|
1756
1832
|
/**
|
|
1757
1833
|
* Returns the color on Face.
|
|
1758
1834
|
* Returns the color of Face as a vector of red, green, and blue values between 0 and 1. If face is ALL_SIDES the color returned is the mean average of each channel.
|
|
1759
1835
|
*/
|
|
1760
|
-
export function GetColor(
|
|
1836
|
+
export function GetColor(face: number): Vector
|
|
1761
1837
|
|
|
1762
1838
|
/**
|
|
1763
1839
|
* Returns a key for the creator of the prim.
|
|
1764
1840
|
* Returns the key of the object's original creator. Similar to llGetOwner.
|
|
1765
1841
|
*/
|
|
1766
|
-
export function GetCreator():
|
|
1842
|
+
export function GetCreator(): UUID
|
|
1767
1843
|
|
|
1768
1844
|
/**
|
|
1769
1845
|
* Returns the current date in the UTC time zone in the format YYYY-MM-DD.
|
|
@@ -1778,30 +1854,31 @@ declare namespace ll {
|
|
|
1778
1854
|
export function GetDayOffset(): number
|
|
1779
1855
|
|
|
1780
1856
|
/** Returns the display name of an avatar, if the avatar is connected to the current region, or if the name has been cached. Otherwise, returns an empty string. Use llRequestDisplayName if the avatar may be absent from the region. */
|
|
1781
|
-
export function GetDisplayName(
|
|
1857
|
+
export function GetDisplayName(avatarId: UUID): string
|
|
1782
1858
|
|
|
1783
1859
|
/** Returns how much energy is in the object as a percentage of maximum. */
|
|
1784
1860
|
export function GetEnergy(): number
|
|
1785
1861
|
|
|
1786
1862
|
/** Returns a string with the requested data about the region. */
|
|
1787
|
-
export function GetEnv(
|
|
1863
|
+
export function GetEnv(dataRequest: string): string
|
|
1788
1864
|
|
|
1789
1865
|
/** Returns a string with the requested data about the region. */
|
|
1790
|
-
export function GetEnvironment(
|
|
1866
|
+
export function GetEnvironment(position: Vector, envParams: number[]): list
|
|
1791
1867
|
|
|
1792
1868
|
/** Returns a list with the following Experience properties: [Experience Name, Owner ID, Group ID, Experience ID, State, State Message]. State is an integer corresponding to one of the constants XP_ERROR_... and State Message is the string returned by llGetExperienceErrorMessage for that integer. */
|
|
1793
|
-
export function GetExperienceDetails(
|
|
1869
|
+
export function GetExperienceDetails(experienceId: UUID): list
|
|
1794
1870
|
|
|
1795
1871
|
/** Returns a string describing the error code passed or the string corresponding with XP_ERROR_UNKNOWN_ERROR if the value is not a valid Experience error code. */
|
|
1796
|
-
export function GetExperienceErrorMessage(
|
|
1872
|
+
export function GetExperienceErrorMessage(error: number): string
|
|
1797
1873
|
|
|
1798
|
-
|
|
1874
|
+
/** @deprecated */
|
|
1875
|
+
export function GetExperienceList(agentId: UUID): UUID[]
|
|
1799
1876
|
|
|
1800
1877
|
/**
|
|
1801
1878
|
* Returns the force (if the script is physical).
|
|
1802
1879
|
* Returns the current force if the script is physical.
|
|
1803
1880
|
*/
|
|
1804
|
-
export function GetForce():
|
|
1881
|
+
export function GetForce(): Vector
|
|
1805
1882
|
|
|
1806
1883
|
/**
|
|
1807
1884
|
* Returns the number of free bytes of memory the script can use.
|
|
@@ -1822,86 +1899,86 @@ declare namespace ll {
|
|
|
1822
1899
|
export function GetGMTclock(): number
|
|
1823
1900
|
|
|
1824
1901
|
/** Returns the vector that is the geometric center of the object relative to the root prim. */
|
|
1825
|
-
export function GetGeometricCenter():
|
|
1902
|
+
export function GetGeometricCenter(): Vector
|
|
1826
1903
|
|
|
1827
1904
|
/**
|
|
1828
1905
|
* Returns the value for header for request_id.
|
|
1829
1906
|
* Returns a string that is the value of the Header for HTTPRequestID.
|
|
1830
1907
|
*/
|
|
1831
|
-
export function GetHTTPHeader(
|
|
1908
|
+
export function GetHTTPHeader(httpRequestId: UUID, header: string): string
|
|
1832
1909
|
|
|
1833
1910
|
/** Returns the current health of an avatar or object in the region. */
|
|
1834
|
-
export function GetHealth(
|
|
1911
|
+
export function GetHealth(id: UUID): number
|
|
1835
1912
|
|
|
1836
1913
|
/** Returns the time at which the item was placed into this prim's inventory as a timestamp. */
|
|
1837
|
-
export function GetInventoryAcquireTime(
|
|
1914
|
+
export function GetInventoryAcquireTime(inventoryItem: string): string
|
|
1838
1915
|
|
|
1839
1916
|
/**
|
|
1840
1917
|
* Returns a key for the creator of the inventory item.
|
|
1841
1918
|
* This function returns the UUID of the creator of item. If item is not found in inventory, the object says "No item named 'name'".
|
|
1842
1919
|
*/
|
|
1843
|
-
export function GetInventoryCreator(
|
|
1920
|
+
export function GetInventoryCreator(inventoryItem: string): UUID
|
|
1844
1921
|
|
|
1845
1922
|
/** Returns the item description of the item in inventory. If item is not found in inventory, the object says "No item named 'name'" to the debug channel and returns an empty string. */
|
|
1846
|
-
export function GetInventoryDesc(
|
|
1923
|
+
export function GetInventoryDesc(inventoryItem: string): string
|
|
1847
1924
|
|
|
1848
1925
|
/**
|
|
1849
1926
|
* Returns the key that is the UUID of the inventory named.
|
|
1850
1927
|
* Returns the key of the inventory named.
|
|
1851
1928
|
*/
|
|
1852
|
-
export function GetInventoryKey(
|
|
1929
|
+
export function GetInventoryKey(inventoryItem: string): UUID
|
|
1853
1930
|
|
|
1854
1931
|
/**
|
|
1855
1932
|
* Returns the name of the inventory item of a given type, specified by index number.
|
|
1856
1933
|
* Use the inventory constants INVENTORY_* to specify the type.
|
|
1857
|
-
* @indexArg
|
|
1934
|
+
* @indexArg index
|
|
1858
1935
|
*/
|
|
1859
|
-
export function GetInventoryName(
|
|
1936
|
+
export function GetInventoryName(inventoryType: number, index: number): string
|
|
1860
1937
|
|
|
1861
1938
|
/**
|
|
1862
1939
|
* Returns the quantity of items of a given type (INVENTORY_* flag) in the prim's inventory.
|
|
1863
1940
|
* Use the inventory constants INVENTORY_* to specify the type.
|
|
1864
1941
|
*/
|
|
1865
|
-
export function GetInventoryNumber(
|
|
1942
|
+
export function GetInventoryNumber(inventoryType: number): number
|
|
1866
1943
|
|
|
1867
1944
|
/**
|
|
1868
1945
|
* Returns the requested permission mask for the inventory item.
|
|
1869
1946
|
* Returns the requested permission mask for the inventory item defined by InventoryItem. If item is not in the object's inventory, llGetInventoryPermMask returns FALSE and causes the object to say "No item named '<item>'", where "<item>" is item.
|
|
1870
1947
|
*/
|
|
1871
|
-
export function GetInventoryPermMask(
|
|
1948
|
+
export function GetInventoryPermMask(inventoryItem: string, bitMask: number): number
|
|
1872
1949
|
|
|
1873
1950
|
/**
|
|
1874
1951
|
* Returns the type of the named inventory item.
|
|
1875
1952
|
* Like all inventory functions, llGetInventoryType is case-sensitive.
|
|
1876
1953
|
*/
|
|
1877
|
-
export function GetInventoryType(
|
|
1954
|
+
export function GetInventoryType(inventoryItem: string): number
|
|
1878
1955
|
|
|
1879
1956
|
/**
|
|
1880
1957
|
* Returns the key of the prim the script is attached to.
|
|
1881
1958
|
* Get the key for the object which has this script.
|
|
1882
1959
|
*/
|
|
1883
|
-
export function GetKey():
|
|
1960
|
+
export function GetKey(): UUID
|
|
1884
1961
|
|
|
1885
1962
|
/**
|
|
1886
1963
|
* Returns the key of the land owner, returns NULL_KEY if public.
|
|
1887
1964
|
* Returns the key of the land owner at Position, or NULL_KEY if public.
|
|
1888
1965
|
*/
|
|
1889
|
-
export function GetLandOwnerAt(
|
|
1966
|
+
export function GetLandOwnerAt(position: Vector): UUID
|
|
1890
1967
|
|
|
1891
1968
|
/**
|
|
1892
1969
|
* Returns the key of the linked prim LinkNumber.
|
|
1893
1970
|
* Returns the key of LinkNumber in the link set.
|
|
1894
1971
|
*/
|
|
1895
|
-
export function GetLinkKey(
|
|
1972
|
+
export function GetLinkKey(linkNumber: number): UUID
|
|
1896
1973
|
|
|
1897
1974
|
/** Get the media parameters for a particular face on linked prim, given the desired list of parameter names. Returns a list of values in the order requested. Returns an empty list if no media exists on the face. */
|
|
1898
|
-
export function GetLinkMedia(
|
|
1975
|
+
export function GetLinkMedia(linkNumber: number, face: number, parameters: number[]): list
|
|
1899
1976
|
|
|
1900
1977
|
/**
|
|
1901
1978
|
* Returns the name of LinkNumber in a link set.
|
|
1902
1979
|
* Returns the name of LinkNumber the link set.
|
|
1903
1980
|
*/
|
|
1904
|
-
export function GetLinkName(
|
|
1981
|
+
export function GetLinkName(linkNumber: number): string
|
|
1905
1982
|
|
|
1906
1983
|
/**
|
|
1907
1984
|
* 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.).
|
|
@@ -1913,7 +1990,7 @@ declare namespace ll {
|
|
|
1913
1990
|
* Returns the number of sides of the specified linked prim.
|
|
1914
1991
|
* Returns an integer that is the number of faces (or sides) of the prim link.
|
|
1915
1992
|
*/
|
|
1916
|
-
export function GetLinkNumberOfSides(
|
|
1993
|
+
export function GetLinkNumberOfSides(linkNumber: number): number
|
|
1917
1994
|
|
|
1918
1995
|
/**
|
|
1919
1996
|
* Returns the list of primitive attributes requested in the Parameters list for LinkNumber.
|
|
@@ -1921,35 +1998,37 @@ declare namespace ll {
|
|
|
1921
1998
|
* * Supplying a prim or object flag will return that flag's attributes.
|
|
1922
1999
|
* * Face flags require the user to also supply a face index parameter.
|
|
1923
2000
|
*/
|
|
1924
|
-
export function GetLinkPrimitiveParams(
|
|
2001
|
+
export function GetLinkPrimitiveParams(linkNumber: number, parameters: number[]): list
|
|
1925
2002
|
|
|
1926
2003
|
/** Returns the sit flags set on the specified prim in a linkset. */
|
|
1927
|
-
export function GetLinkSitFlags(
|
|
2004
|
+
export function GetLinkSitFlags(linkNumber: number): number
|
|
1928
2005
|
|
|
1929
2006
|
/**
|
|
1930
2007
|
* Returns the type of the index entry in the list (TYPE_INTEGER, TYPE_FLOAT, TYPE_STRING, TYPE_KEY, TYPE_VECTOR, TYPE_ROTATION, or TYPE_INVALID if index is off list).
|
|
1931
2008
|
* Returns the type of the variable at Index in ListVariable.
|
|
1932
|
-
* @
|
|
2009
|
+
* @deprecated Use 'typeof' instead.
|
|
2010
|
+
* @indexArg index
|
|
1933
2011
|
*/
|
|
1934
|
-
export function GetListEntryType(
|
|
2012
|
+
export function GetListEntryType(listVariable: list, index: number): number
|
|
1935
2013
|
|
|
1936
2014
|
/**
|
|
1937
2015
|
* Returns the number of elements in the list.
|
|
1938
2016
|
* Returns the number of elements in ListVariable.
|
|
2017
|
+
* @deprecated Use '#' or 'rawlen' instead. Metatable support.
|
|
1939
2018
|
*/
|
|
1940
|
-
export function GetListLength(
|
|
2019
|
+
export function GetListLength(listVariable: list): number
|
|
1941
2020
|
|
|
1942
2021
|
/**
|
|
1943
2022
|
* Returns the position relative to the root.
|
|
1944
2023
|
* Returns the local position of a child object relative to the root.
|
|
1945
2024
|
*/
|
|
1946
|
-
export function GetLocalPos():
|
|
2025
|
+
export function GetLocalPos(): Vector
|
|
1947
2026
|
|
|
1948
2027
|
/**
|
|
1949
2028
|
* Returns the rotation local to the root.
|
|
1950
2029
|
* Returns the local rotation of a child object relative to the root.
|
|
1951
2030
|
*/
|
|
1952
|
-
export function GetLocalRot():
|
|
2031
|
+
export function GetLocalRot(): Quaternion
|
|
1953
2032
|
|
|
1954
2033
|
/**
|
|
1955
2034
|
* Returns the mass of object that the script is attached to.
|
|
@@ -1973,38 +2052,38 @@ declare namespace ll {
|
|
|
1973
2052
|
* Returns a normalized vector of the direction of the moon in the parcel.
|
|
1974
2053
|
* Returns the moon's direction on the simulator in the parcel.
|
|
1975
2054
|
*/
|
|
1976
|
-
export function GetMoonDirection():
|
|
2055
|
+
export function GetMoonDirection(): Vector
|
|
1977
2056
|
|
|
1978
2057
|
/** Returns the rotation applied to the moon in the parcel. */
|
|
1979
|
-
export function GetMoonRotation():
|
|
2058
|
+
export function GetMoonRotation(): Quaternion
|
|
1980
2059
|
|
|
1981
2060
|
/**
|
|
1982
2061
|
* Fetch the next queued email with that matches the given address and/or subject, via the email event.
|
|
1983
2062
|
* If the parameters are blank, they are not used for filtering.
|
|
1984
2063
|
*/
|
|
1985
|
-
export function GetNextEmail(
|
|
2064
|
+
export function GetNextEmail(address: string, subject: string): void
|
|
1986
2065
|
|
|
1987
2066
|
/**
|
|
1988
2067
|
* Returns LineNumber from NotecardName via the dataserver event. The line index starts at zero in LSL, one in Lua.
|
|
1989
2068
|
* If the requested line is passed the end of the note-card the dataserver event will return the constant EOF string.
|
|
1990
2069
|
* The key returned by this function is a unique identifier which will be supplied to the dataserver event in the requested parameter.
|
|
1991
|
-
* @indexArg
|
|
2070
|
+
* @indexArg lineNumber
|
|
1992
2071
|
*/
|
|
1993
|
-
export function GetNotecardLine(
|
|
2072
|
+
export function GetNotecardLine(notecardName: string, lineNumber: number): UUID
|
|
1994
2073
|
|
|
1995
2074
|
/**
|
|
1996
2075
|
* Returns LineNumber from NotecardName. The line index starts at zero in LSL, one in Lua.
|
|
1997
2076
|
* If the requested line is past the end of the note-card the return value will be set to the constant EOF string.
|
|
1998
2077
|
* If the note-card is not cached on the simulator the return value is the NAK string.
|
|
1999
|
-
* @indexArg
|
|
2078
|
+
* @indexArg lineNumber
|
|
2000
2079
|
*/
|
|
2001
|
-
export function GetNotecardLineSync(
|
|
2080
|
+
export function GetNotecardLineSync(notecardName: string, lineNumber: number): string
|
|
2002
2081
|
|
|
2003
2082
|
/**
|
|
2004
2083
|
* Returns the number of lines contained within a notecard via the dataserver event.
|
|
2005
2084
|
* The key returned by this function is a query ID for identifying the dataserver reply.
|
|
2006
2085
|
*/
|
|
2007
|
-
export function GetNumberOfNotecardLines(
|
|
2086
|
+
export function GetNumberOfNotecardLines(notecardName: string): UUID
|
|
2008
2087
|
|
|
2009
2088
|
/**
|
|
2010
2089
|
* Returns the number of prims in a link set the script is attached to.
|
|
@@ -2034,19 +2113,19 @@ declare namespace ll {
|
|
|
2034
2113
|
* Returns a list of object details specified in the Parameters list for the object or avatar in the region with key ID.
|
|
2035
2114
|
* Parameters are specified by the OBJECT_* constants.
|
|
2036
2115
|
*/
|
|
2037
|
-
export function GetObjectDetails(
|
|
2116
|
+
export function GetObjectDetails(id: UUID, parameters: number[]): list
|
|
2038
2117
|
|
|
2039
2118
|
/**
|
|
2040
2119
|
* Returns the key of the linked prim link_no in a linkset.
|
|
2041
2120
|
* Returns the key of link_no in the link set specified by id.
|
|
2042
2121
|
*/
|
|
2043
|
-
export function GetObjectLinkKey(id:
|
|
2122
|
+
export function GetObjectLinkKey(id: UUID, linkNo: number): UUID
|
|
2044
2123
|
|
|
2045
2124
|
/**
|
|
2046
2125
|
* Returns the mass of the avatar or object in the region.
|
|
2047
2126
|
* Gets the mass of the object or avatar corresponding to ID.
|
|
2048
2127
|
*/
|
|
2049
|
-
export function GetObjectMass(
|
|
2128
|
+
export function GetObjectMass(id: UUID): number
|
|
2050
2129
|
|
|
2051
2130
|
/**
|
|
2052
2131
|
* Returns the name of the prim which the script is attached to.
|
|
@@ -2055,50 +2134,50 @@ declare namespace ll {
|
|
|
2055
2134
|
export function GetObjectName(): string
|
|
2056
2135
|
|
|
2057
2136
|
/** Returns the permission mask of the requested category for the object. */
|
|
2058
|
-
export function GetObjectPermMask(
|
|
2137
|
+
export function GetObjectPermMask(category: number): number
|
|
2059
2138
|
|
|
2060
2139
|
/**
|
|
2061
2140
|
* Returns the total number of prims for an object in the region.
|
|
2062
2141
|
* Returns the prim count for any object id in the same region.
|
|
2063
2142
|
*/
|
|
2064
|
-
export function GetObjectPrimCount(
|
|
2143
|
+
export function GetObjectPrimCount(objectId: UUID): number
|
|
2065
2144
|
|
|
2066
2145
|
/**
|
|
2067
2146
|
* Returns the rotation velocity in radians per second.
|
|
2068
2147
|
* Returns a vector that is the rotation velocity of the object in radians per second.
|
|
2069
2148
|
*/
|
|
2070
|
-
export function GetOmega():
|
|
2149
|
+
export function GetOmega(): Vector
|
|
2071
2150
|
|
|
2072
2151
|
/**
|
|
2073
2152
|
* Returns the object owner's UUID.
|
|
2074
2153
|
* Returns the key for the owner of the object.
|
|
2075
2154
|
*/
|
|
2076
|
-
export function GetOwner():
|
|
2155
|
+
export function GetOwner(): UUID
|
|
2077
2156
|
|
|
2078
2157
|
/**
|
|
2079
2158
|
* Returns the owner of ObjectID.
|
|
2080
2159
|
* Returns the key for the owner of object ObjectID.
|
|
2081
2160
|
*/
|
|
2082
|
-
export function GetOwnerKey(
|
|
2161
|
+
export function GetOwnerKey(objectId: UUID): UUID
|
|
2083
2162
|
|
|
2084
2163
|
/**
|
|
2085
2164
|
* Returns a list of parcel details specified in the ParcelDetails list for the parcel at Position.
|
|
2086
2165
|
* Parameters is one or more of: PARCEL_DETAILS_NAME, _DESC, _OWNER, _GROUP, _AREA, _ID, _SEE_AVATARS.
|
|
2087
2166
|
* Returns a list that is the parcel details specified in ParcelDetails (in the same order) for the parcel at Position.
|
|
2088
2167
|
*/
|
|
2089
|
-
export function GetParcelDetails(
|
|
2168
|
+
export function GetParcelDetails(position: Vector, parcelDetails: number[]): list
|
|
2090
2169
|
|
|
2091
2170
|
/**
|
|
2092
2171
|
* Returns a mask of the parcel flags (PARCEL_FLAG_*) for the parcel that includes the point Position.
|
|
2093
2172
|
* Returns a bit-field specifying the parcel flags (PARCEL_FLAG_*) for the parcel at Position.
|
|
2094
2173
|
*/
|
|
2095
|
-
export function GetParcelFlags(
|
|
2174
|
+
export function GetParcelFlags(position: Vector): number
|
|
2096
2175
|
|
|
2097
2176
|
/**
|
|
2098
2177
|
* Returns the maximum number of prims allowed on the parcel at Position for a given scope.
|
|
2099
2178
|
* The scope may be set to an individual parcel or the combined resources of all parcels with the same ownership in the region.
|
|
2100
2179
|
*/
|
|
2101
|
-
export function GetParcelMaxPrims(
|
|
2180
|
+
export function GetParcelMaxPrims(position: Vector, simWide: number): number
|
|
2102
2181
|
|
|
2103
2182
|
/**
|
|
2104
2183
|
* Gets the streaming audio URL for the parcel object is on.
|
|
@@ -2113,7 +2192,7 @@ declare namespace ll {
|
|
|
2113
2192
|
* If SimWide is TRUE, it returns the total number of objects for all parcels with matching ownership in the category specified.
|
|
2114
2193
|
* If SimWide is FALSE, it returns the number of objects on this specific parcel in the category specified
|
|
2115
2194
|
*/
|
|
2116
|
-
export function GetParcelPrimCount(
|
|
2195
|
+
export function GetParcelPrimCount(position: Vector, category: number, simWide: number): number
|
|
2117
2196
|
|
|
2118
2197
|
/**
|
|
2119
2198
|
* Returns a list of up to 100 residents who own objects on the parcel at Position, with per-owner land impact totals.
|
|
@@ -2121,7 +2200,7 @@ declare namespace ll {
|
|
|
2121
2200
|
* The list is formatted as [ key agentKey1, integer agentLI1, key agentKey2, integer agentLI2, ... ], sorted by agent key.
|
|
2122
2201
|
* The integers are the combined land impacts of the objects owned by the corresponding agents.
|
|
2123
2202
|
*/
|
|
2124
|
-
export function GetParcelPrimOwners(
|
|
2203
|
+
export function GetParcelPrimOwners(position: Vector): list
|
|
2125
2204
|
|
|
2126
2205
|
/** Returns an integer bitmask of the permissions that have been granted to the script. Individual permissions can be determined using a bit-wise "and" operation against the PERMISSION_* constants */
|
|
2127
2206
|
export function GetPermissions(): number
|
|
@@ -2130,7 +2209,7 @@ declare namespace ll {
|
|
|
2130
2209
|
* Returns the key of the avatar that last granted or declined permissions to the script.
|
|
2131
2210
|
* Returns NULL_KEY if permissions were never granted or declined.
|
|
2132
2211
|
*/
|
|
2133
|
-
export function GetPermissionsKey():
|
|
2212
|
+
export function GetPermissionsKey(): UUID
|
|
2134
2213
|
|
|
2135
2214
|
/** Returns a list of the form [float gravity_multiplier, float restitution, float friction, float density]. */
|
|
2136
2215
|
export function GetPhysicsMaterial(): number[]
|
|
@@ -2139,16 +2218,16 @@ declare namespace ll {
|
|
|
2139
2218
|
* Returns the position of the task in region coordinates.
|
|
2140
2219
|
* Returns the vector position of the task in region coordinates.
|
|
2141
2220
|
*/
|
|
2142
|
-
export function GetPos():
|
|
2221
|
+
export function GetPos(): Vector
|
|
2143
2222
|
|
|
2144
2223
|
/** Returns the media parameters for a particular face on an object, given the desired list of parameter names, in the order requested. Returns an empty list if no media exists on the face. */
|
|
2145
|
-
export function GetPrimMediaParams(
|
|
2224
|
+
export function GetPrimMediaParams(face: number, parameters: number[]): list
|
|
2146
2225
|
|
|
2147
2226
|
/**
|
|
2148
2227
|
* Returns the primitive parameters specified in the parameters list.
|
|
2149
2228
|
* Returns primitive parameters specified in the Parameters list.
|
|
2150
2229
|
*/
|
|
2151
|
-
export function GetPrimitiveParams(
|
|
2230
|
+
export function GetPrimitiveParams(parameters: number[]): list
|
|
2152
2231
|
|
|
2153
2232
|
/**
|
|
2154
2233
|
* Returns the number of avatars in the region.
|
|
@@ -2160,7 +2239,7 @@ declare namespace ll {
|
|
|
2160
2239
|
* Returns a vector, in meters, that is the global location of the south-west corner of the region which the object is in.
|
|
2161
2240
|
* Returns the Region-Corner of the simulator containing the task. The region-corner is a vector (values in meters) representing distance from the first region.
|
|
2162
2241
|
*/
|
|
2163
|
-
export function GetRegionCorner():
|
|
2242
|
+
export function GetRegionCorner(): Vector
|
|
2164
2243
|
|
|
2165
2244
|
/** Returns the number of seconds in a day in this region. */
|
|
2166
2245
|
export function GetRegionDayLength(): number
|
|
@@ -2181,10 +2260,10 @@ declare namespace ll {
|
|
|
2181
2260
|
* Returns a normalized vector of the direction of the moon in the region.
|
|
2182
2261
|
* Returns the moon's direction on the simulator.
|
|
2183
2262
|
*/
|
|
2184
|
-
export function GetRegionMoonDirection():
|
|
2263
|
+
export function GetRegionMoonDirection(): Vector
|
|
2185
2264
|
|
|
2186
2265
|
/** Returns the rotation applied to the moon in the region. */
|
|
2187
|
-
export function GetRegionMoonRotation():
|
|
2266
|
+
export function GetRegionMoonRotation(): Quaternion
|
|
2188
2267
|
|
|
2189
2268
|
/** Returns the current region name. */
|
|
2190
2269
|
export function GetRegionName(): string
|
|
@@ -2193,10 +2272,10 @@ declare namespace ll {
|
|
|
2193
2272
|
* Returns a normalized vector of the direction of the sun in the region.
|
|
2194
2273
|
* Returns the sun's direction on the simulator.
|
|
2195
2274
|
*/
|
|
2196
|
-
export function GetRegionSunDirection():
|
|
2275
|
+
export function GetRegionSunDirection(): Vector
|
|
2197
2276
|
|
|
2198
2277
|
/** Returns the rotation applied to the sun in the region. */
|
|
2199
|
-
export function GetRegionSunRotation():
|
|
2278
|
+
export function GetRegionSunRotation(): Quaternion
|
|
2200
2279
|
|
|
2201
2280
|
/**
|
|
2202
2281
|
* Returns the current time dilation as a float between 0.0 (full dilation) and 1.0 (no dilation).
|
|
@@ -2211,25 +2290,25 @@ declare namespace ll {
|
|
|
2211
2290
|
* Returns a string that is the render material on face (the inventory name if it is a material in the prim's inventory, otherwise the key).
|
|
2212
2291
|
* Returns the render material of a face, if it is found in object inventory, its key otherwise.
|
|
2213
2292
|
*/
|
|
2214
|
-
export function GetRenderMaterial(
|
|
2293
|
+
export function GetRenderMaterial(face: number): string
|
|
2215
2294
|
|
|
2216
2295
|
/**
|
|
2217
2296
|
* Returns the position (in region coordinates) of the root prim of the object which the script is attached to.
|
|
2218
2297
|
* This is used to allow a child prim to determine where the root is.
|
|
2219
2298
|
*/
|
|
2220
|
-
export function GetRootPosition():
|
|
2299
|
+
export function GetRootPosition(): Vector
|
|
2221
2300
|
|
|
2222
2301
|
/**
|
|
2223
2302
|
* Returns the rotation (relative to the region) of the root prim of the object which the script is attached to.
|
|
2224
2303
|
* Gets the global rotation of the root object of the object script is attached to.
|
|
2225
2304
|
*/
|
|
2226
|
-
export function GetRootRotation():
|
|
2305
|
+
export function GetRootRotation(): Quaternion
|
|
2227
2306
|
|
|
2228
2307
|
/**
|
|
2229
2308
|
* Returns the rotation relative to the region's axes.
|
|
2230
2309
|
* Returns the rotation.
|
|
2231
2310
|
*/
|
|
2232
|
-
export function GetRot():
|
|
2311
|
+
export function GetRot(): Quaternion
|
|
2233
2312
|
|
|
2234
2313
|
/**
|
|
2235
2314
|
* Returns the maximum used memory for the current script. Only valid after using PROFILE_SCRIPT_MEMORY. Non-mono scripts always use 16k.
|
|
@@ -2241,7 +2320,7 @@ declare namespace ll {
|
|
|
2241
2320
|
* Returns the scale of the prim.
|
|
2242
2321
|
* Returns a vector that is the scale (dimensions) of the prim.
|
|
2243
2322
|
*/
|
|
2244
|
-
export function GetScale():
|
|
2323
|
+
export function GetScale(): Vector
|
|
2245
2324
|
|
|
2246
2325
|
/**
|
|
2247
2326
|
* Returns the name of the script that this function is used in.
|
|
@@ -2253,10 +2332,10 @@ declare namespace ll {
|
|
|
2253
2332
|
* Returns TRUE if the script named is running.
|
|
2254
2333
|
* Returns TRUE if ScriptName is running.
|
|
2255
2334
|
*/
|
|
2256
|
-
export function GetScriptState(
|
|
2335
|
+
export function GetScriptState(scriptName: string): number
|
|
2257
2336
|
|
|
2258
2337
|
/** Returns a float that is the requested statistic. */
|
|
2259
|
-
export function GetSimStats(
|
|
2338
|
+
export function GetSimStats(statType: number): number
|
|
2260
2339
|
|
|
2261
2340
|
/**
|
|
2262
2341
|
* Returns the host-name of the machine which the script is running on.
|
|
@@ -2276,46 +2355,46 @@ declare namespace ll {
|
|
|
2276
2355
|
*/
|
|
2277
2356
|
export function GetStartString(): string
|
|
2278
2357
|
|
|
2279
|
-
export function GetStaticPath(
|
|
2358
|
+
export function GetStaticPath(start: Vector, end: Vector, radius: number, parameters: list): list
|
|
2280
2359
|
|
|
2281
2360
|
/** Returns boolean value of the specified status (e.g. STATUS_PHANTOM) of the object the script is attached to. */
|
|
2282
|
-
export function GetStatus(
|
|
2361
|
+
export function GetStatus(statusFlag: number): number
|
|
2283
2362
|
|
|
2284
2363
|
/**
|
|
2285
2364
|
* Returns a sub-string from String, in a range specified by the Start and End indices (inclusive).
|
|
2286
2365
|
* Using negative numbers for Start and/or End causes the index to count backwards from the length of the string, so 0, -1 would capture the entire string.
|
|
2287
2366
|
* If Start is greater than End, the sub string is the exclusion of the entries.
|
|
2288
|
-
* @indexArg
|
|
2289
|
-
* @indexArg
|
|
2367
|
+
* @indexArg start
|
|
2368
|
+
* @indexArg end
|
|
2290
2369
|
*/
|
|
2291
|
-
export function GetSubString(
|
|
2370
|
+
export function GetSubString(string: string, start: number, end: number): string
|
|
2292
2371
|
|
|
2293
2372
|
/**
|
|
2294
2373
|
* Returns a normalized vector of the direction of the sun in the parcel.
|
|
2295
2374
|
* Returns the sun's direction on the simulator in the parcel.
|
|
2296
2375
|
*/
|
|
2297
|
-
export function GetSunDirection():
|
|
2376
|
+
export function GetSunDirection(): Vector
|
|
2298
2377
|
|
|
2299
2378
|
/** Returns the rotation applied to the sun in the parcel. */
|
|
2300
|
-
export function GetSunRotation():
|
|
2379
|
+
export function GetSunRotation(): Quaternion
|
|
2301
2380
|
|
|
2302
2381
|
/**
|
|
2303
2382
|
* Returns a string that is the texture on face (the inventory name if it is a texture in the prim's inventory, otherwise the key).
|
|
2304
2383
|
* Returns the texture of a face, if it is found in object inventory, its key otherwise.
|
|
2305
2384
|
*/
|
|
2306
|
-
export function GetTexture(
|
|
2385
|
+
export function GetTexture(face: number): string
|
|
2307
2386
|
|
|
2308
2387
|
/** Returns the texture offset of face in the x and y components of a vector. */
|
|
2309
|
-
export function GetTextureOffset(
|
|
2388
|
+
export function GetTextureOffset(face: number): Vector
|
|
2310
2389
|
|
|
2311
2390
|
/** Returns the texture rotation of side. */
|
|
2312
|
-
export function GetTextureRot(
|
|
2391
|
+
export function GetTextureRot(face: number): number
|
|
2313
2392
|
|
|
2314
2393
|
/**
|
|
2315
2394
|
* Returns the texture scale of side in the x and y components of a vector.
|
|
2316
2395
|
* Returns the texture scale of a side in the x and y components of a vector.
|
|
2317
2396
|
*/
|
|
2318
|
-
export function GetTextureScale(
|
|
2397
|
+
export function GetTextureScale(face: number): Vector
|
|
2319
2398
|
|
|
2320
2399
|
/** Returns the time in seconds since the last region reset, script reset, or call to either llResetTime or llGetAndResetTime. */
|
|
2321
2400
|
export function GetTime(): number
|
|
@@ -2330,7 +2409,7 @@ declare namespace ll {
|
|
|
2330
2409
|
* Returns the torque (if the script is physical).
|
|
2331
2410
|
* Returns a vector that is the torque (if the script is physical).
|
|
2332
2411
|
*/
|
|
2333
|
-
export function GetTorque():
|
|
2412
|
+
export function GetTorque(): Vector
|
|
2334
2413
|
|
|
2335
2414
|
/** Returns the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC from the system clock. */
|
|
2336
2415
|
export function GetUnixTime(): number
|
|
@@ -2342,16 +2421,16 @@ declare namespace ll {
|
|
|
2342
2421
|
export function GetUsedMemory(): number
|
|
2343
2422
|
|
|
2344
2423
|
/** Returns the username of an avatar, if the avatar is connected to the current region, or if the name has been cached. Otherwise, returns an empty string. Use llRequestUsername if the avatar may be absent from the region. */
|
|
2345
|
-
export function GetUsername(
|
|
2424
|
+
export function GetUsername(avatarId: UUID): string
|
|
2346
2425
|
|
|
2347
2426
|
/**
|
|
2348
2427
|
* Returns the velocity of the object.
|
|
2349
2428
|
* Returns a vector that is the velocity of the object.
|
|
2350
2429
|
*/
|
|
2351
|
-
export function GetVel():
|
|
2430
|
+
export function GetVel(): Vector
|
|
2352
2431
|
|
|
2353
2432
|
/** Returns a list of the current value for each requested visual parameter. */
|
|
2354
|
-
export function GetVisualParams(
|
|
2433
|
+
export function GetVisualParams(id: UUID, parameters: (number | string)[]): (number | "")[]
|
|
2355
2434
|
|
|
2356
2435
|
/**
|
|
2357
2436
|
* Returns the time in seconds since midnight California Pacific time (PST/PDT).
|
|
@@ -2361,54 +2440,54 @@ declare namespace ll {
|
|
|
2361
2440
|
|
|
2362
2441
|
/** Give InventoryItems to the specified agent as a new folder of items, as permitted by the permissions system. The target must be an agent. */
|
|
2363
2442
|
export function GiveAgentInventory(
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2443
|
+
agentId: UUID,
|
|
2444
|
+
folderName: string,
|
|
2445
|
+
inventoryItems: string[],
|
|
2446
|
+
options: list,
|
|
2368
2447
|
): number
|
|
2369
2448
|
|
|
2370
2449
|
/**
|
|
2371
2450
|
* Give InventoryItem to destination represented by TargetID, as permitted by the permissions system.
|
|
2372
2451
|
* TargetID may be any agent or an object in the same region.
|
|
2373
2452
|
*/
|
|
2374
|
-
export function GiveInventory(
|
|
2453
|
+
export function GiveInventory(targetId: UUID, inventoryItem: string): void
|
|
2375
2454
|
|
|
2376
2455
|
/**
|
|
2377
2456
|
* Give InventoryItems to destination (represented by TargetID) as a new folder of items, as permitted by the permissions system.
|
|
2378
2457
|
* TargetID may be any agent or an object in the same region. If TargetID is an object, the items are passed directly to the object inventory (no folder is created).
|
|
2379
2458
|
*/
|
|
2380
2459
|
export function GiveInventoryList(
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2460
|
+
targetId: UUID,
|
|
2461
|
+
folderName: string,
|
|
2462
|
+
inventoryItems: string[],
|
|
2384
2463
|
): void
|
|
2385
2464
|
|
|
2386
2465
|
/**
|
|
2387
2466
|
* Transfers Amount of L$ from script owner to AvatarID.
|
|
2388
2467
|
* This call will silently fail if PERMISSION_DEBIT has not been granted.
|
|
2389
2468
|
*/
|
|
2390
|
-
export function GiveMoney(
|
|
2469
|
+
export function GiveMoney(avatarId: UUID, amount: number): number
|
|
2391
2470
|
|
|
2392
2471
|
/** Rez directly off of a UUID if owner has god-bit set. */
|
|
2393
|
-
export function GodLikeRezObject(
|
|
2472
|
+
export function GodLikeRezObject(inventoryItemId: UUID, position: Vector): void
|
|
2394
2473
|
|
|
2395
2474
|
/**
|
|
2396
2475
|
* Returns the ground height at the object position + offset.
|
|
2397
2476
|
* Returns the ground height at the object's position + Offset.
|
|
2398
2477
|
*/
|
|
2399
|
-
export function Ground(
|
|
2478
|
+
export function Ground(offset: Vector): number
|
|
2400
2479
|
|
|
2401
2480
|
/**
|
|
2402
2481
|
* Returns the ground contour direction below the object position + Offset.
|
|
2403
2482
|
* Returns the ground contour at the object's position + Offset.
|
|
2404
2483
|
*/
|
|
2405
|
-
export function GroundContour(
|
|
2484
|
+
export function GroundContour(offset: Vector): Vector
|
|
2406
2485
|
|
|
2407
2486
|
/**
|
|
2408
2487
|
* Returns the ground normal below the object position + offset.
|
|
2409
2488
|
* Returns the ground contour at the object's position + Offset.
|
|
2410
2489
|
*/
|
|
2411
|
-
export function GroundNormal(
|
|
2490
|
+
export function GroundNormal(offset: Vector): Vector
|
|
2412
2491
|
|
|
2413
2492
|
/**
|
|
2414
2493
|
* Critically damps to height if within height * 0.5 of level (either above ground level or above the higher of land and water if water == TRUE).
|
|
@@ -2416,25 +2495,25 @@ declare namespace ll {
|
|
|
2416
2495
|
* The height is above ground level if iWater is FALSE or above the higher of land and water if iWater is TRUE.
|
|
2417
2496
|
* Do not use with vehicles. Only works in physics-enabled objects.
|
|
2418
2497
|
*/
|
|
2419
|
-
export function GroundRepel(
|
|
2498
|
+
export function GroundRepel(height: number, water: number, tau: number): void
|
|
2420
2499
|
|
|
2421
2500
|
/**
|
|
2422
2501
|
* Returns the ground slope below the object position + Offset.
|
|
2423
2502
|
* Returns the ground slope at the object position + Offset.
|
|
2424
2503
|
*/
|
|
2425
|
-
export function GroundSlope(
|
|
2504
|
+
export function GroundSlope(offset: Vector): Vector
|
|
2426
2505
|
|
|
2427
2506
|
/** Returns the base64-encoded hashed message authentication code (HMAC), of Message using PEM-formatted Key and digest Algorithm (md5, sha1, sha224, sha256, sha384, sha512). */
|
|
2428
|
-
export function HMAC(
|
|
2507
|
+
export function HMAC(key: string, message: string, algorithm: string): string
|
|
2429
2508
|
|
|
2430
2509
|
/**
|
|
2431
2510
|
* Sends an HTTP request to the specified URL with the Body of the request and Parameters.
|
|
2432
2511
|
* Returns a key that is a handle identifying the HTTP request made.
|
|
2433
2512
|
*/
|
|
2434
|
-
export function HTTPRequest(
|
|
2513
|
+
export function HTTPRequest(url: string, parameters: list, body: string): UUID
|
|
2435
2514
|
|
|
2436
2515
|
/** Responds to an incoming HTTP request which was triggerd by an http_request event within the script. HTTPRequestID specifies the request to respond to (this ID is supplied in the http_request event handler). Status and Body specify the status code and message to respond with. */
|
|
2437
|
-
export function HTTPResponse(
|
|
2516
|
+
export function HTTPResponse(httpRequestId: UUID, status: number, body: string): void
|
|
2438
2517
|
|
|
2439
2518
|
/** Calculates the 32bit hash value for the provided string. */
|
|
2440
2519
|
export function Hash(value: string): number
|
|
@@ -2442,28 +2521,28 @@ declare namespace ll {
|
|
|
2442
2521
|
/**
|
|
2443
2522
|
* Inserts SourceVariable into TargetVariable at Position, and returns the result.
|
|
2444
2523
|
* Inserts SourceVariable into TargetVariable at Position and returns the result. Note this does not alter TargetVariable.
|
|
2445
|
-
* @indexArg
|
|
2524
|
+
* @indexArg position
|
|
2446
2525
|
*/
|
|
2447
2526
|
export function InsertString(
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2527
|
+
targetVariable: string,
|
|
2528
|
+
position: number,
|
|
2529
|
+
sourceVariable: string,
|
|
2451
2530
|
): string
|
|
2452
2531
|
|
|
2453
2532
|
/**
|
|
2454
2533
|
* IMs Text to the user identified.
|
|
2455
2534
|
* Send Text to the user as an instant message.
|
|
2456
2535
|
*/
|
|
2457
|
-
export function InstantMessage(
|
|
2536
|
+
export function InstantMessage(avatarId: UUID, text: string): void
|
|
2458
2537
|
|
|
2459
2538
|
/**
|
|
2460
2539
|
* Returns a string that is a Base64 big endian encode of Value.
|
|
2461
2540
|
* Encodes the Value as an 8-character Base64 string.
|
|
2462
2541
|
*/
|
|
2463
|
-
export function IntegerToBase64(
|
|
2542
|
+
export function IntegerToBase64(value: number): string
|
|
2464
2543
|
|
|
2465
2544
|
/** Returns TRUE if avatar ID is a friend of the script owner. */
|
|
2466
|
-
export function IsFriend(
|
|
2545
|
+
export function IsFriend(agentId: UUID): number
|
|
2467
2546
|
|
|
2468
2547
|
/** Checks the face for a PBR render material. */
|
|
2469
2548
|
export function IsLinkGLTFMaterial(link: number, face: number): number
|
|
@@ -2472,82 +2551,82 @@ declare namespace ll {
|
|
|
2472
2551
|
* Converts the top level of the JSON string to a list.
|
|
2473
2552
|
* @deprecated Use 'lljson.decode' instead.
|
|
2474
2553
|
*/
|
|
2475
|
-
export function Json2List(
|
|
2554
|
+
export function Json2List(json: string): list
|
|
2476
2555
|
|
|
2477
2556
|
/**
|
|
2478
2557
|
* Gets the value indicated by Specifiers from the JSON string.
|
|
2479
2558
|
* @deprecated Use 'lljson.decode' instead. Also, the indices are zero-based.
|
|
2480
2559
|
*/
|
|
2481
|
-
export function JsonGetValue(
|
|
2560
|
+
export function JsonGetValue(json: string, specifiers: list): string
|
|
2482
2561
|
|
|
2483
2562
|
/**
|
|
2484
2563
|
* Returns a new JSON string that is the JSON given with the Value indicated by Specifiers set to Value.
|
|
2485
2564
|
* @deprecated Use 'lljson.encode' instead. Also, the indices are zero-based.
|
|
2486
2565
|
*/
|
|
2487
|
-
export function JsonSetValue(
|
|
2566
|
+
export function JsonSetValue(json: string, specifiers: list, value: string): string
|
|
2488
2567
|
|
|
2489
2568
|
/**
|
|
2490
2569
|
* Returns the type constant (JSON_*) for the value in JSON indicated by Specifiers.
|
|
2491
2570
|
* @deprecated Use 'lljson.decode' and 'typeof' instead. Also, the indices are zero-based.
|
|
2492
2571
|
*/
|
|
2493
|
-
export function JsonValueType(
|
|
2572
|
+
export function JsonValueType(json: string, specifiers: list): string
|
|
2494
2573
|
|
|
2495
2574
|
/**
|
|
2496
2575
|
* Returns the name of the prim or avatar specified by ID. The ID must be a valid rezzed prim or avatar key in the current simulator, otherwise an empty string is returned.
|
|
2497
2576
|
* For avatars, the returned name is the legacy name
|
|
2498
2577
|
*/
|
|
2499
|
-
export function Key2Name(
|
|
2578
|
+
export function Key2Name(id: UUID): string
|
|
2500
2579
|
|
|
2501
2580
|
/** Starts an asychronous transaction the request the number of keys in the data store. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will the the number of keys in the system. */
|
|
2502
|
-
export function KeyCountKeyValue():
|
|
2581
|
+
export function KeyCountKeyValue(): UUID
|
|
2503
2582
|
|
|
2504
2583
|
/**
|
|
2505
2584
|
* Starts an asychronous transaction the request a number of keys from the data store. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. The error XP_ERROR_KEY_NOT_FOUND is returned if First is greater than or equal to the number of keys in the data store. In the success case the subsequent items will be the keys requested. The number of keys returned may be less than requested if the return value is too large or if there is not enough keys remaining. The order keys are returned is not guaranteed but is stable between subsequent calls as long as no keys are added or removed. Because the keys are returned in a comma-delimited list it is not recommended to use commas in key names if this function is used.
|
|
2506
|
-
* @indexArg
|
|
2585
|
+
* @indexArg first
|
|
2507
2586
|
*/
|
|
2508
|
-
export function KeysKeyValue(
|
|
2587
|
+
export function KeysKeyValue(first: number, count: number): UUID
|
|
2509
2588
|
|
|
2510
2589
|
/** Converts a color from the linear colorspace to sRGB. */
|
|
2511
|
-
export function Linear2sRGB(color:
|
|
2590
|
+
export function Linear2sRGB(color: Vector): Vector
|
|
2512
2591
|
|
|
2513
2592
|
/**
|
|
2514
2593
|
* Adjusts the volume (0.0 - 1.0) of the currently playing sound attached to the link.
|
|
2515
2594
|
* This function has no effect on sounds started with llTriggerSound.
|
|
2516
2595
|
*/
|
|
2517
|
-
export function LinkAdjustSoundVolume(
|
|
2596
|
+
export function LinkAdjustSoundVolume(linkNumber: number, volume: number): void
|
|
2518
2597
|
|
|
2519
2598
|
/**
|
|
2520
2599
|
* Creates a particle system in prim LinkNumber based on Rules. An empty list removes a particle system from object.
|
|
2521
2600
|
* List format is [ rule-1, data-1, rule-2, data-2 ... rule-n, data-n ].
|
|
2522
2601
|
* This is identical to llParticleSystem except that it applies to a specified linked prim and not just the prim the script is in.
|
|
2523
2602
|
*/
|
|
2524
|
-
export function LinkParticleSystem(
|
|
2603
|
+
export function LinkParticleSystem(linkNumber: number, rules: list): void
|
|
2525
2604
|
|
|
2526
2605
|
/**
|
|
2527
2606
|
* Plays Sound, once or looping, at Volume (0.0 - 1.0). The sound may be attached to the link or triggered at its location.
|
|
2528
2607
|
* Only one sound may be attached to an object at a time, and attaching a new sound or calling llStopSound will stop the previously attached sound.
|
|
2529
2608
|
*/
|
|
2530
2609
|
export function LinkPlaySound(
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2610
|
+
linkNumber: number,
|
|
2611
|
+
sound: string,
|
|
2612
|
+
volume: number,
|
|
2613
|
+
flags: number,
|
|
2535
2614
|
): void
|
|
2536
2615
|
|
|
2537
2616
|
/** Limits radius for audibility of scripted sounds (both attached and triggered) to distance Radius around the link. */
|
|
2538
|
-
export function LinkSetSoundQueueing(
|
|
2617
|
+
export function LinkSetSoundQueueing(linkNumber: number, queueEnable: number): void
|
|
2539
2618
|
|
|
2540
2619
|
/** Limits radius for audibility of scripted sounds (both attached and triggered) to distance Radius around the link. */
|
|
2541
|
-
export function LinkSetSoundRadius(
|
|
2620
|
+
export function LinkSetSoundRadius(linkNumber: number, radius: number): void
|
|
2542
2621
|
|
|
2543
2622
|
/**
|
|
2544
2623
|
* Set the sit location for the linked prim(s). If Offset == <0,0,0> clear it.
|
|
2545
2624
|
* Set the sit location for the linked prim(s). The sit location is relative to the prim's position and rotation.
|
|
2546
2625
|
*/
|
|
2547
|
-
export function LinkSitTarget(
|
|
2626
|
+
export function LinkSitTarget(linkNumber: number, offset: Vector, rotation: Quaternion): void
|
|
2548
2627
|
|
|
2549
2628
|
/** Stops playback of the currently attached sound on a link. */
|
|
2550
|
-
export function LinkStopSound(
|
|
2629
|
+
export function LinkStopSound(linkNumber: number): void
|
|
2551
2630
|
|
|
2552
2631
|
/** Returns the number of bytes remaining in the linkset's datastore. */
|
|
2553
2632
|
export function LinksetDataAvailable(): number
|
|
@@ -2598,166 +2677,172 @@ declare namespace ll {
|
|
|
2598
2677
|
* Creates a string of comma separated values from the list.
|
|
2599
2678
|
* Create a string of comma separated values from the specified list.
|
|
2600
2679
|
*/
|
|
2601
|
-
export function List2CSV(
|
|
2680
|
+
export function List2CSV(listVariable: list): string
|
|
2602
2681
|
|
|
2603
2682
|
/**
|
|
2604
2683
|
* Copies the float at Index in the list.
|
|
2605
2684
|
* Returns the value at Index in the specified list. If Index describes a location not in the list, or the value cannot be type-cast to a float, then zero is returned.
|
|
2606
|
-
* @
|
|
2685
|
+
* @deprecated Use '[]' and 'tonumber' instead.
|
|
2686
|
+
* @indexArg index
|
|
2607
2687
|
*/
|
|
2608
|
-
export function List2Float(
|
|
2688
|
+
export function List2Float(listVariable: list, index: number): number
|
|
2609
2689
|
|
|
2610
2690
|
/**
|
|
2611
2691
|
* Copies the integer at Index in the list.
|
|
2612
2692
|
* Returns the value at Index in the specified list. If Index describes a location not in the list, or the value cannot be type-cast to an integer, then zero is returned.
|
|
2613
|
-
* @
|
|
2693
|
+
* @deprecated Use '[]', 'tonumber', and 'math.modf' instead.
|
|
2694
|
+
* @indexArg index
|
|
2614
2695
|
*/
|
|
2615
|
-
export function List2Integer(
|
|
2696
|
+
export function List2Integer(listVariable: list, index: number): number
|
|
2616
2697
|
|
|
2617
2698
|
/**
|
|
2618
2699
|
* Converts either a strided list of key:value pairs to a JSON_OBJECT, or a list of values to a JSON_ARRAY.
|
|
2619
2700
|
* @deprecated Use 'lljson.encode' instead.
|
|
2620
2701
|
*/
|
|
2621
|
-
export function List2Json(
|
|
2702
|
+
export function List2Json(jsonType: string, values: list): string
|
|
2622
2703
|
|
|
2623
2704
|
/**
|
|
2624
2705
|
* Copies the key at Index in the list.
|
|
2625
2706
|
* Returns the value at Index in the specified list. If Index describes a location not in the list, or the value cannot be type-cast to a key, then null string is returned.
|
|
2626
|
-
* @
|
|
2707
|
+
* @deprecated Use '[]' and 'touuid' instead.
|
|
2708
|
+
* @indexArg index
|
|
2627
2709
|
*/
|
|
2628
|
-
export function List2Key(
|
|
2710
|
+
export function List2Key(listVariable: list, index: number): UUID
|
|
2629
2711
|
|
|
2630
2712
|
/**
|
|
2631
2713
|
* Returns a subset of entries from ListVariable, in a range specified by the Start and End indicies (inclusive).
|
|
2632
2714
|
* Using negative numbers for Start and/or End causes the index to count backwards from the length of the string, so 0, -1 would capture the entire string.
|
|
2633
2715
|
* If Start is greater than End, the sub string is the exclusion of the entries.
|
|
2634
|
-
* @indexArg
|
|
2635
|
-
* @indexArg
|
|
2716
|
+
* @indexArg start
|
|
2717
|
+
* @indexArg end
|
|
2636
2718
|
*/
|
|
2637
|
-
export function List2List(
|
|
2719
|
+
export function List2List(listVariable: T[], start: number, end: number): T[]
|
|
2638
2720
|
|
|
2639
2721
|
/**
|
|
2640
2722
|
* Returns a subset of entries from ListVariable, in a range specified by Start and End indices (inclusive) return the slice_index element of each stride.
|
|
2641
2723
|
* Using negative numbers for Start and/or End causes the index to count backwards from the length of the list. (e.g. 0, -1 captures entire list)
|
|
2642
2724
|
* If slice_index is less than 0, it is counted backwards from the end of the stride.
|
|
2643
2725
|
* Stride must be a positive integer > 0 or an empy list is returned. If slice_index falls outside range of stride, an empty list is returned. slice_index is zero-based. (e.g. A stride of 2 has valid indices 0,1)
|
|
2644
|
-
* @indexArg
|
|
2645
|
-
* @indexArg
|
|
2646
|
-
* @indexArg
|
|
2726
|
+
* @indexArg start
|
|
2727
|
+
* @indexArg end
|
|
2728
|
+
* @indexArg sliceIndex
|
|
2647
2729
|
*/
|
|
2648
2730
|
export function List2ListSlice(
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2731
|
+
listVariable: T[],
|
|
2732
|
+
start: number,
|
|
2733
|
+
end: number,
|
|
2734
|
+
stride: number,
|
|
2735
|
+
sliceIndex: number,
|
|
2654
2736
|
): T[]
|
|
2655
2737
|
|
|
2656
2738
|
/**
|
|
2657
2739
|
* Copies the strided slice of the list from Start to End.
|
|
2658
2740
|
* Returns a copy of the strided slice of the specified list from Start to End.
|
|
2659
|
-
* @indexArg
|
|
2660
|
-
* @indexArg
|
|
2741
|
+
* @indexArg start
|
|
2742
|
+
* @indexArg end
|
|
2661
2743
|
*/
|
|
2662
2744
|
export function List2ListStrided(
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2745
|
+
listVariable: T[],
|
|
2746
|
+
start: number,
|
|
2747
|
+
end: number,
|
|
2748
|
+
stride: number,
|
|
2667
2749
|
): T[]
|
|
2668
2750
|
|
|
2669
2751
|
/**
|
|
2670
2752
|
* Copies the rotation at Index in the list.
|
|
2671
2753
|
* Returns the value at Index in the specified list. If Index describes a location not in the list, or the value cannot be type-cast to rotation, thenZERO_ROTATION is returned.
|
|
2672
|
-
* @
|
|
2754
|
+
* @deprecated Use '[]' instead.
|
|
2755
|
+
* @indexArg index
|
|
2673
2756
|
*/
|
|
2674
|
-
export function List2Rot(
|
|
2757
|
+
export function List2Rot(listVariable: list, index: number): Quaternion
|
|
2675
2758
|
|
|
2676
2759
|
/**
|
|
2677
2760
|
* Copies the string at Index in the list.
|
|
2678
2761
|
* Returns the value at Index in the specified list as a string. If Index describes a location not in the list then null string is returned.
|
|
2679
|
-
* @
|
|
2762
|
+
* @deprecated Use '[]' and 'tostring' instead.
|
|
2763
|
+
* @indexArg index
|
|
2680
2764
|
*/
|
|
2681
|
-
export function List2String(
|
|
2765
|
+
export function List2String(listVariable: list, index: number): string
|
|
2682
2766
|
|
|
2683
2767
|
/**
|
|
2684
2768
|
* Copies the vector at Index in the list.
|
|
2685
2769
|
* Returns the value at Index in the specified list. If Index describes a location not in the list, or the value cannot be type-cast to a vector, then ZERO_VECTOR is returned.
|
|
2686
|
-
* @
|
|
2770
|
+
* @deprecated Use '[]' instead.
|
|
2771
|
+
* @indexArg index
|
|
2687
2772
|
*/
|
|
2688
|
-
export function List2Vector(
|
|
2773
|
+
export function List2Vector(listVariable: list, index: number): Vector
|
|
2689
2774
|
|
|
2690
2775
|
/**
|
|
2691
2776
|
* Returns the first index where Find appears in ListVariable. Returns -1 if not found.
|
|
2692
2777
|
* @indexReturn
|
|
2693
2778
|
*/
|
|
2694
|
-
export function ListFindList(
|
|
2779
|
+
export function ListFindList(listVariable: list, find: list): number | undefined
|
|
2695
2780
|
|
|
2696
2781
|
/**
|
|
2697
2782
|
* Returns the nth index where Find appears in ListVariable. Returns -1 if not found.
|
|
2698
|
-
* @indexArg
|
|
2783
|
+
* @indexArg instance
|
|
2699
2784
|
* @indexReturn
|
|
2700
2785
|
*/
|
|
2701
2786
|
export function ListFindListNext(
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2787
|
+
listVariable: list,
|
|
2788
|
+
find: list,
|
|
2789
|
+
instance: number,
|
|
2705
2790
|
): number | undefined
|
|
2706
2791
|
|
|
2707
2792
|
/**
|
|
2708
2793
|
* Returns the first index (where Start <= index <= End) where Find appears in ListVariable. Steps through ListVariable by Stride. Returns -1 if not found.
|
|
2709
|
-
* @indexArg
|
|
2710
|
-
* @indexArg
|
|
2794
|
+
* @indexArg start
|
|
2795
|
+
* @indexArg end
|
|
2711
2796
|
* @indexReturn
|
|
2712
2797
|
*/
|
|
2713
2798
|
export function ListFindStrided(
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2799
|
+
listVariable: list,
|
|
2800
|
+
find: list,
|
|
2801
|
+
start: number,
|
|
2802
|
+
end: number,
|
|
2803
|
+
stride: number,
|
|
2719
2804
|
): number | undefined
|
|
2720
2805
|
|
|
2721
2806
|
/**
|
|
2722
2807
|
* Returns a list that contains all the elements from Target but with the elements from ListVariable inserted at Position start.
|
|
2723
2808
|
* Returns a new list, created by inserting ListVariable into the Target list at Position. Note this does not alter the Target.
|
|
2724
|
-
* @indexArg
|
|
2809
|
+
* @indexArg position
|
|
2725
2810
|
*/
|
|
2726
|
-
export function ListInsertList(
|
|
2811
|
+
export function ListInsertList(target: T[], listVariable: T[], position: number): T[]
|
|
2727
2812
|
|
|
2728
2813
|
/**
|
|
2729
2814
|
* Returns a version of the input ListVariable which has been randomized by blocks of size Stride.
|
|
2730
2815
|
* If the remainder from the length of the list, divided by the stride is non-zero, this function does not randomize the list.
|
|
2731
2816
|
*/
|
|
2732
|
-
export function ListRandomize(
|
|
2817
|
+
export function ListRandomize(listVariable: T[], stride: number): T[]
|
|
2733
2818
|
|
|
2734
2819
|
/**
|
|
2735
2820
|
* Returns a list that is Target with Start through End removed and ListVariable inserted at Start.
|
|
2736
2821
|
* Returns a list replacing the slice of the Target list from Start to End with the specified ListVariable. Start and End are inclusive, so 0, 1 would replace the first two entries and 0, 0 would replace only the first list entry.
|
|
2737
|
-
* @indexArg
|
|
2738
|
-
* @indexArg
|
|
2822
|
+
* @indexArg start
|
|
2823
|
+
* @indexArg end
|
|
2739
2824
|
*/
|
|
2740
|
-
export function ListReplaceList(
|
|
2825
|
+
export function ListReplaceList(target: T[], listVariable: T[], start: number, end: number): T[]
|
|
2741
2826
|
|
|
2742
2827
|
/** Returns the specified list, sorted into blocks of stride in ascending order (if Ascending is TRUE, otherwise descending). Note that sort only works if the first entry of each block is the same datatype. */
|
|
2743
|
-
export function ListSort(
|
|
2828
|
+
export function ListSort(listVariable: T[], stride: number, ascending: number): T[]
|
|
2744
2829
|
|
|
2745
2830
|
/**
|
|
2746
2831
|
* Returns the specified list, sorted by the specified element into blocks of stride in ascending order (if Ascending is TRUE, otherwise descending). Note that sort only works if the first entry of each block is the same datatype.
|
|
2747
|
-
* @indexArg
|
|
2832
|
+
* @indexArg sortkey
|
|
2748
2833
|
*/
|
|
2749
2834
|
export function ListSortStrided(
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2835
|
+
listVariable: T[],
|
|
2836
|
+
stride: number,
|
|
2837
|
+
sortkey: number,
|
|
2838
|
+
ascending: number,
|
|
2754
2839
|
): T[]
|
|
2755
2840
|
|
|
2756
2841
|
/**
|
|
2757
2842
|
* Performs a statistical aggregate function, specified by a LIST_STAT_* constant, on ListVariables.
|
|
2758
2843
|
* This function allows a script to perform a statistical operation as defined by operation on a list composed of integers and floats.
|
|
2759
2844
|
*/
|
|
2760
|
-
export function ListStatistics(
|
|
2845
|
+
export function ListStatistics(operation: number, listVariable: list): number
|
|
2761
2846
|
|
|
2762
2847
|
/**
|
|
2763
2848
|
* Creates a listen callback for Text on Channel from SpeakersName and SpeakersID (SpeakersName, SpeakersID, and/or Text can be empty) and returns an identifier that can be used to deactivate or remove the listen.
|
|
@@ -2765,45 +2850,47 @@ declare namespace ll {
|
|
|
2765
2850
|
* PUBLIC_CHANNEL is the public chat channel that all avatars see as chat text. DEBUG_CHANNEL is the script debug channel, and is also visible to nearby avatars. All other channels are are not sent to avatars, but may be used to communicate with scripts.
|
|
2766
2851
|
*/
|
|
2767
2852
|
export function Listen(
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2853
|
+
channel: number,
|
|
2854
|
+
speakersName: string,
|
|
2855
|
+
speakersId: UUID,
|
|
2856
|
+
text: string,
|
|
2772
2857
|
): number
|
|
2773
2858
|
|
|
2774
2859
|
/**
|
|
2775
2860
|
* Makes a listen event callback active or inactive. Pass in the value returned from llListen to the iChannelHandle parameter to specify which listener you are controlling.
|
|
2776
2861
|
* Use boolean values to specify Active
|
|
2777
2862
|
*/
|
|
2778
|
-
export function ListenControl(
|
|
2863
|
+
export function ListenControl(channelHandle: number, active: number): void
|
|
2779
2864
|
|
|
2780
2865
|
/** Removes a listen event callback. Pass in the value returned from llListen to the iChannelHandle parameter to specify which listener to remove. */
|
|
2781
|
-
export function ListenRemove(
|
|
2866
|
+
export function ListenRemove(channelHandle: number): void
|
|
2782
2867
|
|
|
2783
2868
|
/**
|
|
2784
2869
|
* Shows dialog to avatar AvatarID offering to load web page at URL. If user clicks yes, launches their web browser.
|
|
2785
2870
|
* llLoadURL displays a dialogue box to the user, offering to load the specified web page using the default web browser.
|
|
2786
2871
|
*/
|
|
2787
|
-
export function LoadURL(
|
|
2872
|
+
export function LoadURL(avatarId: UUID, text: string, url: string): void
|
|
2788
2873
|
|
|
2789
2874
|
/**
|
|
2790
2875
|
* Returns the natural logarithm of Value. Returns zero if Value <= 0.
|
|
2791
2876
|
* Returns the base e (natural) logarithm of the specified Value.
|
|
2877
|
+
* @deprecated Use 'math.log' instead. It's a fastcall.
|
|
2792
2878
|
*/
|
|
2793
|
-
export function Log(
|
|
2879
|
+
export function Log(value: number): number
|
|
2794
2880
|
|
|
2795
2881
|
/**
|
|
2796
2882
|
* Returns the base 10 logarithm of Value. Returns zero if Value <= 0.
|
|
2797
2883
|
* Returns the base 10 (common) logarithm of the specified Value.
|
|
2884
|
+
* @deprecated Use 'math.log10' instead. It's a fastcall.
|
|
2798
2885
|
*/
|
|
2799
|
-
export function Log10(
|
|
2886
|
+
export function Log10(value: number): number
|
|
2800
2887
|
|
|
2801
2888
|
/**
|
|
2802
2889
|
* Cause object name to point its forward axis towards Target, at a force controlled by Strength and Damping.
|
|
2803
2890
|
* Good Strength values are around half the mass of the object and good Damping values are less than 1/10th of the Strength.
|
|
2804
2891
|
* Asymmetrical shapes require smaller Damping. A Strength of 0.0 cancels the look at.
|
|
2805
2892
|
*/
|
|
2806
|
-
export function LookAt(
|
|
2893
|
+
export function LookAt(target: Vector, strength: number, damping: number): void
|
|
2807
2894
|
|
|
2808
2895
|
/**
|
|
2809
2896
|
* Plays specified Sound, looping indefinitely, at Volume (0.0 - 1.0).
|
|
@@ -2812,14 +2899,14 @@ declare namespace ll {
|
|
|
2812
2899
|
* Setting the volume to 0 is not the same as calling llStopSound; a sound with 0 volume will continue to loop.
|
|
2813
2900
|
* To restart the sound from the beginning, call llStopSound before calling llLoopSound again.
|
|
2814
2901
|
*/
|
|
2815
|
-
export function LoopSound(
|
|
2902
|
+
export function LoopSound(sound: string, volume: number): void
|
|
2816
2903
|
|
|
2817
2904
|
/**
|
|
2818
2905
|
* Plays attached Sound, looping at volume (0.0 - 1.0), and declares it a sync master.
|
|
2819
2906
|
* Behaviour is identical to llLoopSound, with the addition of marking the source as a "Sync Master", causing "Slave" sounds to sync to it. If there are multiple masters within a viewers interest area, the most audible one (a function of both distance and volume) will win out as the master.
|
|
2820
2907
|
* The use of multiple masters within a small area is unlikely to produce the desired effect.
|
|
2821
2908
|
*/
|
|
2822
|
-
export function LoopSoundMaster(
|
|
2909
|
+
export function LoopSoundMaster(sound: string, volume: number): void
|
|
2823
2910
|
|
|
2824
2911
|
/**
|
|
2825
2912
|
* Plays attached sound looping at volume (0.0 - 1.0), synced to most audible sync master.
|
|
@@ -2827,70 +2914,74 @@ declare namespace ll {
|
|
|
2827
2914
|
* If a Sync Master is already playing the Slave sound will begin playing from the same point the master is in its loop synchronizing the loop points of both sounds.
|
|
2828
2915
|
* If a Sync Master is started when the Slave is already playing, the Slave will skip to the correct position to sync with the Master.
|
|
2829
2916
|
*/
|
|
2830
|
-
export function LoopSoundSlave(
|
|
2917
|
+
export function LoopSoundSlave(sound: string, volume: number): void
|
|
2831
2918
|
|
|
2832
2919
|
/**
|
|
2833
2920
|
* Returns a string of 32 hex characters that is an RSA Data Security Inc., MD5 Message-Digest Algorithm of Text with Nonce used as the salt.
|
|
2834
2921
|
* Returns a 32-character hex string. (128-bit in binary.)
|
|
2835
2922
|
*/
|
|
2836
|
-
export function MD5String(
|
|
2923
|
+
export function MD5String(text: string, nonce: number): string
|
|
2837
2924
|
|
|
2838
2925
|
/**
|
|
2839
2926
|
* Make a round explosion of particles. Deprecated: Use llParticleSystem instead.
|
|
2840
2927
|
* Make a round explosion of particles using texture from the objects inventory. Deprecated: Use llParticleSystem instead.
|
|
2928
|
+
* @deprecated Use 'll.ParticleSystem' instead.
|
|
2841
2929
|
*/
|
|
2842
2930
|
export function MakeExplosion(
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2931
|
+
particles: number,
|
|
2932
|
+
scale: number,
|
|
2933
|
+
velocity: number,
|
|
2934
|
+
lifetime: number,
|
|
2935
|
+
arc: number,
|
|
2936
|
+
texture: string,
|
|
2937
|
+
offset: Vector,
|
|
2850
2938
|
): void
|
|
2851
2939
|
|
|
2852
2940
|
/**
|
|
2853
2941
|
* Make fire like particles. Deprecated: Use llParticleSystem instead.
|
|
2854
2942
|
* Make fire particles using texture from the objects inventory. Deprecated: Use llParticleSystem instead.
|
|
2943
|
+
* @deprecated Use 'll.ParticleSystem' instead.
|
|
2855
2944
|
*/
|
|
2856
2945
|
export function MakeFire(
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2946
|
+
particles: number,
|
|
2947
|
+
scale: number,
|
|
2948
|
+
velocity: number,
|
|
2949
|
+
lifetime: number,
|
|
2950
|
+
arc: number,
|
|
2951
|
+
texture: string,
|
|
2952
|
+
offset: Vector,
|
|
2864
2953
|
): void
|
|
2865
2954
|
|
|
2866
2955
|
/**
|
|
2867
2956
|
* Make a fountain of particles. Deprecated: Use llParticleSystem instead.
|
|
2868
2957
|
* Make a fountain of particles using texture from the objects inventory. Deprecated: Use llParticleSystem instead.
|
|
2958
|
+
* @deprecated Use 'll.ParticleSystem' instead.
|
|
2869
2959
|
*/
|
|
2870
2960
|
export function MakeFountain(
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2961
|
+
particles: number,
|
|
2962
|
+
scale: number,
|
|
2963
|
+
velocity: number,
|
|
2964
|
+
lifetime: number,
|
|
2965
|
+
arc: number,
|
|
2966
|
+
bounce: number,
|
|
2967
|
+
texture: string,
|
|
2968
|
+
offset: Vector,
|
|
2969
|
+
bounceOffset: number,
|
|
2880
2970
|
): void
|
|
2881
2971
|
|
|
2882
2972
|
/**
|
|
2883
2973
|
* Make smoke like particles. Deprecated: Use llParticleSystem instead.
|
|
2884
2974
|
* Make smoky particles using texture from the objects inventory. Deprecated: Use llParticleSystem instead.
|
|
2975
|
+
* @deprecated Use 'll.ParticleSystem' instead.
|
|
2885
2976
|
*/
|
|
2886
2977
|
export function MakeSmoke(
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2978
|
+
particles: number,
|
|
2979
|
+
scale: number,
|
|
2980
|
+
velocity: number,
|
|
2981
|
+
lifetime: number,
|
|
2982
|
+
arc: number,
|
|
2983
|
+
texture: string,
|
|
2984
|
+
offset: Vector,
|
|
2894
2985
|
): void
|
|
2895
2986
|
|
|
2896
2987
|
/**
|
|
@@ -2898,68 +2989,71 @@ declare namespace ll {
|
|
|
2898
2989
|
* Returns an integer representing a boolean, TRUE if the call was successful; FALSE if throttled, invalid action, invalid or null id or object owner is not allowed to manage the estate.
|
|
2899
2990
|
* The object owner is notified of any changes, unless PERMISSION_SILENT_ESTATE_MANAGEMENT has been granted to the script.
|
|
2900
2991
|
*/
|
|
2901
|
-
export function ManageEstateAccess(
|
|
2992
|
+
export function ManageEstateAccess(action: number, avatarId: UUID): number
|
|
2902
2993
|
|
|
2903
2994
|
/** Displays an in world beacon and optionally opens world map for avatar who touched the object or is wearing the script, centered on RegionName with Position highlighted. Only works for scripts attached to avatar, or during touch events. */
|
|
2904
|
-
export function MapBeacon(
|
|
2995
|
+
export function MapBeacon(regionName: string, position: Vector, options: list): void
|
|
2905
2996
|
|
|
2906
2997
|
/**
|
|
2907
2998
|
* Opens world map for avatar who touched it or is wearing the script, centred on RegionName with Position highlighted. Only works for scripts attached to avatar, or during touch events.
|
|
2908
2999
|
* Direction currently has no effect.
|
|
2909
3000
|
*/
|
|
2910
|
-
export function MapDestination(
|
|
3001
|
+
export function MapDestination(regionName: string, position: Vector, direction: Vector): void
|
|
2911
3002
|
|
|
2912
3003
|
/**
|
|
2913
3004
|
* Sends Number, Text, and ID to members of the link set identified by LinkNumber.
|
|
2914
3005
|
* LinkNumber is either a linked number (available through llGetLinkNumber) or a LINK_* constant.
|
|
2915
3006
|
*/
|
|
2916
3007
|
export function MessageLinked(
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
3008
|
+
linkNumber: number,
|
|
3009
|
+
number: number,
|
|
3010
|
+
text: string | UUID,
|
|
3011
|
+
id: string | UUID,
|
|
2921
3012
|
): void
|
|
2922
3013
|
|
|
2923
3014
|
/** Set the minimum time between events being handled. */
|
|
2924
|
-
export function MinEventDelay(
|
|
3015
|
+
export function MinEventDelay(delay: number): void
|
|
2925
3016
|
|
|
2926
3017
|
/**
|
|
2927
3018
|
* Returns a Value raised to the Power, mod Modulus. ((a**b)%c) b is capped at 0xFFFF (16 bits).
|
|
2928
3019
|
* Returns (Value ^ Power) % Modulus. (Value raised to the Power, Modulus). Value is capped at 0xFFFF (16 bits).
|
|
2929
3020
|
*/
|
|
2930
|
-
export function ModPow(
|
|
3021
|
+
export function ModPow(value: number, power: number, modulus: number): number
|
|
2931
3022
|
|
|
2932
3023
|
/** Modify land with action (LAND_LEVEL, LAND_RAISE, LAND_LOWER, LAND_SMOOTH, LAND_NOISE, LAND_REVERT) on size (0, 1, 2, corresponding to 2m x 2m, 4m x 4m, 8m x 8m). */
|
|
2933
|
-
export function ModifyLand(
|
|
3024
|
+
export function ModifyLand(action: number, area: number): void
|
|
2934
3025
|
|
|
2935
3026
|
/**
|
|
2936
3027
|
* Critically damp to Target in Tau seconds (if the script is physical).
|
|
2937
3028
|
* Critically damp to position target in tau-seconds if the script is physical. Good tau-values are greater than 0.2. A tau of 0.0 stops the critical damping.
|
|
2938
3029
|
*/
|
|
2939
|
-
export function MoveToTarget(
|
|
3030
|
+
export function MoveToTarget(target: Vector, tau: number): void
|
|
2940
3031
|
|
|
2941
3032
|
/** Look up Agent ID for the named agent in the region. */
|
|
2942
|
-
export function Name2Key(
|
|
3033
|
+
export function Name2Key(name: string): UUID
|
|
2943
3034
|
|
|
2944
3035
|
/**
|
|
2945
3036
|
* Navigate to destination.
|
|
2946
3037
|
* Directs an object to travel to a defined position in the region or adjacent regions.
|
|
2947
3038
|
*/
|
|
2948
|
-
export function NavigateTo(
|
|
3039
|
+
export function NavigateTo(location: Vector, options: list): void
|
|
2949
3040
|
|
|
2950
3041
|
/**
|
|
2951
3042
|
* Sets the texture S and T offsets for the chosen Face.
|
|
2952
3043
|
* If Face is ALL_SIDES this function sets the texture offsets for all faces.
|
|
2953
3044
|
*/
|
|
2954
|
-
export function OffsetTexture(
|
|
3045
|
+
export function OffsetTexture(offsetS: number, offsetT: number, face: number): void
|
|
2955
3046
|
|
|
2956
3047
|
/**
|
|
2957
3048
|
* Returns the value for header for request_id.
|
|
2958
3049
|
* Returns a string that is the value of the Header for HTTPRequestID.
|
|
2959
3050
|
*/
|
|
2960
|
-
export function OpenFloater(
|
|
3051
|
+
export function OpenFloater(floaterName: string, url: string, params: list): number
|
|
2961
3052
|
|
|
2962
|
-
/**
|
|
3053
|
+
/**
|
|
3054
|
+
* This function is deprecated.
|
|
3055
|
+
* @deprecated
|
|
3056
|
+
*/
|
|
2963
3057
|
export function OpenRemoteDataChannel(): void
|
|
2964
3058
|
|
|
2965
3059
|
/**
|
|
@@ -2972,62 +3066,63 @@ declare namespace ll {
|
|
|
2972
3066
|
* Returns TRUE if id ID over land owned by the script owner, otherwise FALSE.
|
|
2973
3067
|
* Returns TRUE if key ID is over land owned by the object owner, FALSE otherwise.
|
|
2974
3068
|
*/
|
|
2975
|
-
export function OverMyLand(
|
|
3069
|
+
export function OverMyLand(id: UUID): number
|
|
2976
3070
|
|
|
2977
3071
|
/**
|
|
2978
3072
|
* says Text to owner only (if owner is in region).
|
|
2979
3073
|
* Says Text to the owner of the object running the script, if the owner has been within the object's simulator since logging into Second Life, regardless of where they may be in-world.
|
|
3074
|
+
* @deprecated Use 'print' instead.
|
|
2980
3075
|
*/
|
|
2981
|
-
export function OwnerSay(
|
|
3076
|
+
export function OwnerSay(text: string): void
|
|
2982
3077
|
|
|
2983
3078
|
/** Controls the playback of multimedia resources on a parcel or for an agent, via one or more PARCEL_MEDIA_COMMAND_* arguments specified in CommandList. */
|
|
2984
|
-
export function ParcelMediaCommandList(
|
|
3079
|
+
export function ParcelMediaCommandList(commandList: list): void
|
|
2985
3080
|
|
|
2986
3081
|
/**
|
|
2987
3082
|
* Queries the media properties of the parcel containing the script, via one or more PARCEL_MEDIA_COMMAND_* arguments specified in CommandList.
|
|
2988
3083
|
* This function will only work if the script is contained within an object owned by the land-owner (or if the land is owned by a group, only if the object has been deeded to the group).
|
|
2989
3084
|
*/
|
|
2990
|
-
export function ParcelMediaQuery(
|
|
3085
|
+
export function ParcelMediaQuery(queryList: number[]): list
|
|
2991
3086
|
|
|
2992
3087
|
/**
|
|
2993
3088
|
* Converts Text into a list, discarding Separators, keeping Spacers (Separators and Spacers must be lists of strings, maximum of 8 each).
|
|
2994
3089
|
* Separators and Spacers are lists of strings with a maximum of 8 entries each.
|
|
2995
3090
|
*/
|
|
2996
|
-
export function ParseString2List(
|
|
3091
|
+
export function ParseString2List(text: string, separators: string[], spacers: string[]): string[]
|
|
2997
3092
|
|
|
2998
3093
|
/**
|
|
2999
3094
|
* Breaks Text into a list, discarding separators, keeping spacers, keeping any null values generated. (separators and spacers must be lists of strings, maximum of 8 each).
|
|
3000
3095
|
* llParseStringKeepNulls works almost exactly like llParseString2List, except that if a null is found it will add a null-string instead of discarding it like llParseString2List does.
|
|
3001
3096
|
*/
|
|
3002
3097
|
export function ParseStringKeepNulls(
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3098
|
+
text: string,
|
|
3099
|
+
separators: string[],
|
|
3100
|
+
spacers: string[],
|
|
3006
3101
|
): string[]
|
|
3007
3102
|
|
|
3008
3103
|
/**
|
|
3009
3104
|
* Creates a particle system in the prim the script is attached to, based on Parameters. An empty list removes a particle system from object.
|
|
3010
3105
|
* List format is [ rule-1, data-1, rule-2, data-2 ... rule-n, data-n ].
|
|
3011
3106
|
*/
|
|
3012
|
-
export function ParticleSystem(
|
|
3107
|
+
export function ParticleSystem(parameters: list): void
|
|
3013
3108
|
|
|
3014
3109
|
/**
|
|
3015
3110
|
* Configures how collision events are passed to scripts in the linkset.
|
|
3016
3111
|
* If Pass == TRUE, collisions involving collision-handling scripted child prims are also passed on to the root prim. If Pass == FALSE (default behavior), such collisions will only trigger events in the affected child prim.
|
|
3017
3112
|
*/
|
|
3018
|
-
export function PassCollisions(
|
|
3113
|
+
export function PassCollisions(pass: number): void
|
|
3019
3114
|
|
|
3020
3115
|
/**
|
|
3021
3116
|
* Configures how touch events are passed to scripts in the linkset.
|
|
3022
3117
|
* If Pass == TRUE, touches involving touch-handling scripted child prims are also passed on to the root prim. If Pass == FALSE (default behavior), such touches will only trigger events in the affected child prim.
|
|
3023
3118
|
*/
|
|
3024
|
-
export function PassTouches(
|
|
3119
|
+
export function PassTouches(pass: number): void
|
|
3025
3120
|
|
|
3026
3121
|
/**
|
|
3027
3122
|
* Patrol a list of points.
|
|
3028
3123
|
* Sets the points for a character (llCreateCharacter) to patrol along.
|
|
3029
3124
|
*/
|
|
3030
|
-
export function PatrolPoints(
|
|
3125
|
+
export function PatrolPoints(points: Vector[], options: list): void
|
|
3031
3126
|
|
|
3032
3127
|
/**
|
|
3033
3128
|
* Plays Sound once, at Volume (0.0 - 1.0) and attached to the object.
|
|
@@ -3035,66 +3130,72 @@ declare namespace ll {
|
|
|
3035
3130
|
* A second call to llPlaySound with the same sound will not restart the sound, but the new volume will be used, which allows control over the volume of already playing sounds.
|
|
3036
3131
|
* To restart the sound from the beginning, call llStopSound before calling llPlaySound again.
|
|
3037
3132
|
*/
|
|
3038
|
-
export function PlaySound(
|
|
3133
|
+
export function PlaySound(sound: string, volume: number): void
|
|
3039
3134
|
|
|
3040
3135
|
/**
|
|
3041
3136
|
* Plays attached Sound once, at Volume (0.0 - 1.0), synced to next loop of most audible sync master.
|
|
3042
3137
|
* Behaviour is identical to llPlaySound, unless there is a "Sync Master" present. If a Sync Master is already playing, the Slave sound will not be played until the Master hits its loop point and returns to the beginning.
|
|
3043
3138
|
* llPlaySoundSlave will play the sound exactly once; if it is desired to have the sound play every time the Master loops, either use llLoopSoundSlave with extra silence padded on the end of the sound or ensure that llPlaySoundSlave is called at least once per loop of the Master.
|
|
3044
3139
|
*/
|
|
3045
|
-
export function PlaySoundSlave(
|
|
3140
|
+
export function PlaySoundSlave(sound: string, volume: number): void
|
|
3046
3141
|
|
|
3047
|
-
|
|
3142
|
+
/** @deprecated */
|
|
3143
|
+
export function PointAt(point: Vector): void
|
|
3048
3144
|
|
|
3049
3145
|
/**
|
|
3050
3146
|
* Returns the Value raised to the power Exponent, or returns 0 and triggers Math Error for imaginary results.
|
|
3051
3147
|
* Returns the Value raised to the Exponent.
|
|
3148
|
+
* @deprecated Use '^' instead. It's a fastcall.
|
|
3052
3149
|
*/
|
|
3053
|
-
export function Pow(
|
|
3150
|
+
export function Pow(value: number, exponent: number): number
|
|
3054
3151
|
|
|
3055
3152
|
/**
|
|
3056
3153
|
* Causes nearby viewers to preload the Sound from the object's inventory.
|
|
3057
3154
|
* This is intended to prevent delays in starting new sounds when called upon.
|
|
3058
3155
|
*/
|
|
3059
|
-
export function PreloadSound(
|
|
3156
|
+
export function PreloadSound(sound: string): void
|
|
3060
3157
|
|
|
3061
3158
|
/**
|
|
3062
3159
|
* Chase after a target.
|
|
3063
3160
|
* Causes the character (llCharacter) to pursue the target defined by TargetID.
|
|
3064
3161
|
*/
|
|
3065
|
-
export function Pursue(
|
|
3162
|
+
export function Pursue(targetId: UUID, options: list): void
|
|
3066
3163
|
|
|
3067
3164
|
/**
|
|
3068
3165
|
* Applies Impulse and AngularImpulse to ObjectID.
|
|
3069
3166
|
* Applies the supplied impulse and angular impulse to the object specified.
|
|
3070
3167
|
*/
|
|
3071
3168
|
export function PushObject(
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3169
|
+
objectId: UUID,
|
|
3170
|
+
impulse: Vector,
|
|
3171
|
+
angularImpulse: Vector,
|
|
3172
|
+
local: number,
|
|
3076
3173
|
): void
|
|
3077
3174
|
|
|
3078
3175
|
/** Starts an asychronous transaction to retrieve the value associated with the key given. Will fail with XP_ERROR_KEY_NOT_FOUND if the key does not exist. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is a two element commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will be the value associated with the key. */
|
|
3079
|
-
export function ReadKeyValue(
|
|
3176
|
+
export function ReadKeyValue(key: string): UUID
|
|
3080
3177
|
|
|
3081
|
-
/**
|
|
3178
|
+
/**
|
|
3179
|
+
* Reloads the web page shown on the sides of the object.
|
|
3180
|
+
* @deprecated Use 'll.SetPrimMediaParams' instead.
|
|
3181
|
+
*/
|
|
3082
3182
|
export function RefreshPrimURL(): void
|
|
3083
3183
|
|
|
3084
3184
|
/** Broadcasts Text to entire region on Channel (except for channel 0). */
|
|
3085
|
-
export function RegionSay(
|
|
3185
|
+
export function RegionSay(channel: number, text: string): void
|
|
3086
3186
|
|
|
3087
3187
|
/**
|
|
3088
3188
|
* Says Text, on Channel, to avatar or object indicated by TargetID (if within region).
|
|
3089
3189
|
* If TargetID is an avatar and Channel is nonzero, Text can be heard by any attachment on the avatar.
|
|
3090
3190
|
*/
|
|
3091
|
-
export function RegionSayTo(
|
|
3191
|
+
export function RegionSayTo(targetId: UUID, channel: number, text: string): void
|
|
3092
3192
|
|
|
3093
3193
|
/**
|
|
3094
3194
|
* Return camera to agent.
|
|
3095
3195
|
* Deprecated: Use llClearCameraParams instead.
|
|
3196
|
+
* @deprecated Use 'll.ClearCameraParams' instead.
|
|
3096
3197
|
*/
|
|
3097
|
-
export function ReleaseCamera(
|
|
3198
|
+
export function ReleaseCamera(avatarId: UUID): void
|
|
3098
3199
|
|
|
3099
3200
|
/**
|
|
3100
3201
|
* Stop taking inputs.
|
|
@@ -3103,133 +3204,140 @@ declare namespace ll {
|
|
|
3103
3204
|
export function ReleaseControls(): void
|
|
3104
3205
|
|
|
3105
3206
|
/** Releases the specified URL, which was previously obtained using llRequestURL. Once released, the URL will no longer be usable. */
|
|
3106
|
-
export function ReleaseURL(
|
|
3207
|
+
export function ReleaseURL(url: string): void
|
|
3107
3208
|
|
|
3108
|
-
/**
|
|
3209
|
+
/**
|
|
3210
|
+
* This function is deprecated.
|
|
3211
|
+
* @deprecated
|
|
3212
|
+
*/
|
|
3109
3213
|
export function RemoteDataReply(
|
|
3110
|
-
|
|
3111
|
-
|
|
3214
|
+
channelId: UUID,
|
|
3215
|
+
messageId: UUID,
|
|
3112
3216
|
sData: string,
|
|
3113
3217
|
iData: number,
|
|
3114
3218
|
): void
|
|
3115
3219
|
|
|
3116
|
-
/**
|
|
3220
|
+
/**
|
|
3221
|
+
* This function is deprecated.
|
|
3222
|
+
* @deprecated
|
|
3223
|
+
*/
|
|
3117
3224
|
export function RemoteDataSetRegion(): void
|
|
3118
3225
|
|
|
3226
|
+
/** @deprecated */
|
|
3119
3227
|
export function RemoteLoadScript(
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3228
|
+
target: UUID,
|
|
3229
|
+
scriptName: string,
|
|
3230
|
+
unknown1: number,
|
|
3231
|
+
unknown2: number,
|
|
3124
3232
|
): void
|
|
3125
3233
|
|
|
3126
3234
|
/** If the owner of the object containing this script can modify the object identified by the specified object key, and if the PIN matches the PIN previously set using llSetRemoteScriptAccessPin (on the target prim), then the script will be copied into target. Running is a boolean specifying whether the script should be enabled once copied into the target object. */
|
|
3127
3235
|
export function RemoteLoadScriptPin(
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3236
|
+
objectId: UUID,
|
|
3237
|
+
scriptName: string,
|
|
3238
|
+
pin: number,
|
|
3239
|
+
running: number,
|
|
3240
|
+
startParameter: number,
|
|
3133
3241
|
): void
|
|
3134
3242
|
|
|
3135
3243
|
/**
|
|
3136
3244
|
* Remove avatar from the land ban list.
|
|
3137
3245
|
* Remove specified avatar from the land parcel ban list.
|
|
3138
3246
|
*/
|
|
3139
|
-
export function RemoveFromLandBanList(
|
|
3247
|
+
export function RemoveFromLandBanList(avatarId: UUID): void
|
|
3140
3248
|
|
|
3141
3249
|
/**
|
|
3142
3250
|
* Remove avatar from the land pass list.
|
|
3143
3251
|
* Remove specified avatar from the land parcel pass list.
|
|
3144
3252
|
*/
|
|
3145
|
-
export function RemoveFromLandPassList(
|
|
3253
|
+
export function RemoveFromLandPassList(avatarId: UUID): void
|
|
3146
3254
|
|
|
3147
3255
|
/**
|
|
3148
3256
|
* Remove the named inventory item.
|
|
3149
3257
|
* Remove the named inventory item from the object inventory.
|
|
3150
3258
|
*/
|
|
3151
|
-
export function RemoveInventory(
|
|
3259
|
+
export function RemoveInventory(inventoryItem: string): void
|
|
3152
3260
|
|
|
3153
3261
|
/**
|
|
3154
3262
|
* Removes the enabled bits in 'flags'.
|
|
3155
3263
|
* Sets the vehicle flags to FALSE. Valid parameters can be found in the vehicle flags constants section.
|
|
3156
3264
|
*/
|
|
3157
|
-
export function RemoveVehicleFlags(
|
|
3265
|
+
export function RemoveVehicleFlags(vehiclelags: number): void
|
|
3158
3266
|
|
|
3159
3267
|
/** Replaces the entire environment for an agent. Must be used as part of an experience. */
|
|
3160
3268
|
export function ReplaceAgentEnvironment(
|
|
3161
|
-
|
|
3269
|
+
agentId: UUID,
|
|
3162
3270
|
transition: number,
|
|
3163
3271
|
environment: string,
|
|
3164
3272
|
): number
|
|
3165
3273
|
|
|
3166
3274
|
/** Replaces the environment for a parcel or region. */
|
|
3167
3275
|
export function ReplaceEnvironment(
|
|
3168
|
-
position:
|
|
3276
|
+
position: Vector,
|
|
3169
3277
|
environment: string,
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3278
|
+
trackNo: number,
|
|
3279
|
+
dayLength: number,
|
|
3280
|
+
dayOffset: number,
|
|
3173
3281
|
): number
|
|
3174
3282
|
|
|
3175
3283
|
/** Searches InitialString and replaces instances of SubString with NewSubString. Zero Count means "replace all". Positive Count moves left to right. Negative moves right to left. */
|
|
3176
3284
|
export function ReplaceSubString(
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3285
|
+
initialString: string,
|
|
3286
|
+
subString: string,
|
|
3287
|
+
newSubString: string,
|
|
3288
|
+
count: number,
|
|
3181
3289
|
): string
|
|
3182
3290
|
|
|
3183
3291
|
/**
|
|
3184
3292
|
* Requests data about AvatarID. When data is available the dataserver event will be raised.
|
|
3185
3293
|
* This function requests data about an avatar. If and when the information is collected, the dataserver event is triggered with the key returned from this function passed in the requested parameter. See the agent data constants (DATA_*) for details about valid values of data and what each will return in the dataserver event.
|
|
3186
3294
|
*/
|
|
3187
|
-
export function RequestAgentData(
|
|
3295
|
+
export function RequestAgentData(avatarId: UUID, data: number): UUID
|
|
3188
3296
|
|
|
3189
3297
|
/**
|
|
3190
3298
|
* Requests the display name of the agent. When the display name is available the dataserver event will be raised.
|
|
3191
3299
|
* The avatar identified does not need to be in the same region or online at the time of the request.
|
|
3192
3300
|
* Returns a key that is used to identify the dataserver event when it is raised.
|
|
3193
3301
|
*/
|
|
3194
|
-
export function RequestDisplayName(
|
|
3302
|
+
export function RequestDisplayName(avatarId: UUID): UUID
|
|
3195
3303
|
|
|
3196
3304
|
/** Ask the agent for permission to participate in an experience. This request is similar to llRequestPermissions with the following permissions: PERMISSION_TAKE_CONTROLS, PERMISSION_TRIGGER_ANIMATION, PERMISSION_ATTACH, PERMISSION_TRACK_CAMERA, PERMISSION_CONTROL_CAMERA and PERMISSION_TELEPORT. However, unlike llRequestPermissions the decision to allow or block the request is persistent and applies to all scripts using the experience grid wide. Subsequent calls to llRequestExperiencePermissions from scripts in the experience will receive the same response automatically with no user interaction. One of experience_permissions or experience_permissions_denied will be generated in response to this call. Outstanding permission requests will be lost if the script is derezzed, moved to another region or reset. */
|
|
3197
|
-
export function RequestExperiencePermissions(
|
|
3305
|
+
export function RequestExperiencePermissions(agentId: UUID, unused: string): void
|
|
3198
3306
|
|
|
3199
3307
|
/**
|
|
3200
3308
|
* Requests data for the named InventoryItem.
|
|
3201
3309
|
* When data is available, the dataserver event will be raised with the key returned from this function in the requested parameter.
|
|
3202
3310
|
* The only request currently implemented is to request data from landmarks, where the data returned is in the form "<float, float, float>" which can be cast to a vector. This position is in region local coordinates.
|
|
3203
3311
|
*/
|
|
3204
|
-
export function RequestInventoryData(
|
|
3312
|
+
export function RequestInventoryData(inventoryItem: string): UUID
|
|
3205
3313
|
|
|
3206
3314
|
/**
|
|
3207
3315
|
* Ask AvatarID to allow the script to perform certain actions, specified in the PermissionMask bitmask. PermissionMask should be one or more PERMISSION_* constants. Multiple permissions can be requested simultaneously by ORing the constants together. Many of the permissions requests can only go to object owner.
|
|
3208
3316
|
* This call will not stop script execution. If the avatar grants the requested permissions, the run_time_permissions event will be called.
|
|
3209
3317
|
*/
|
|
3210
|
-
export function RequestPermissions(
|
|
3318
|
+
export function RequestPermissions(avatarId: UUID, permissionMask: number): void
|
|
3211
3319
|
|
|
3212
3320
|
/**
|
|
3213
3321
|
* Requests one HTTPS:// (SSL) URL for use by this object. The http_request event is triggered with results.
|
|
3214
3322
|
* Returns a key that is the handle used for identifying the request in the http_request event.
|
|
3215
3323
|
*/
|
|
3216
|
-
export function RequestSecureURL():
|
|
3324
|
+
export function RequestSecureURL(): UUID
|
|
3217
3325
|
|
|
3218
3326
|
/**
|
|
3219
3327
|
* Requests the specified Data about RegionName. When the specified data is available, the dataserver event is raised.
|
|
3220
3328
|
* Data should use one of the DATA_SIM_* constants.
|
|
3221
3329
|
* Returns a dataserver query ID and triggers the dataserver event when data is found.
|
|
3222
3330
|
*/
|
|
3223
|
-
export function RequestSimulatorData(
|
|
3331
|
+
export function RequestSimulatorData(regionName: string, data: number): UUID
|
|
3224
3332
|
|
|
3225
3333
|
/**
|
|
3226
3334
|
* Requests one HTTP:// URL for use by this script. The http_request event is triggered with the result of the request.
|
|
3227
3335
|
* Returns a key that is the handle used for identifying the result in the http_request event.
|
|
3228
3336
|
*/
|
|
3229
|
-
export function RequestURL():
|
|
3337
|
+
export function RequestURL(): UUID
|
|
3230
3338
|
|
|
3231
3339
|
/** Look up Agent ID for the named agent using a historical name. */
|
|
3232
|
-
export function RequestUserKey(
|
|
3340
|
+
export function RequestUserKey(name: string): UUID
|
|
3233
3341
|
|
|
3234
3342
|
/**
|
|
3235
3343
|
* Requests single-word user-name of an avatar. When data is available the dataserver event will be raised.
|
|
@@ -3237,14 +3345,14 @@ declare namespace ll {
|
|
|
3237
3345
|
* The agent identified does not need to be in the same region or online at the time of the request.
|
|
3238
3346
|
* Returns a key that is used to identify the dataserver event when it is raised.
|
|
3239
3347
|
*/
|
|
3240
|
-
export function RequestUsername(
|
|
3348
|
+
export function RequestUsername(avatarId: UUID): UUID
|
|
3241
3349
|
|
|
3242
3350
|
/**
|
|
3243
3351
|
* Resets the animation of the specified animation state to the default value.
|
|
3244
3352
|
* If animation state equals "ALL", then all animation states are reset.
|
|
3245
3353
|
* Requires the PERMISSION_OVERRIDE_ANIMATIONS permission (automatically granted to attached objects).
|
|
3246
3354
|
*/
|
|
3247
|
-
export function ResetAnimationOverride(
|
|
3355
|
+
export function ResetAnimationOverride(animationState: string): void
|
|
3248
3356
|
|
|
3249
3357
|
/** Removes all residents from the land ban list. */
|
|
3250
3358
|
export function ResetLandBanList(): void
|
|
@@ -3253,7 +3361,7 @@ declare namespace ll {
|
|
|
3253
3361
|
export function ResetLandPassList(): void
|
|
3254
3362
|
|
|
3255
3363
|
/** Resets the named script. */
|
|
3256
|
-
export function ResetOtherScript(
|
|
3364
|
+
export function ResetOtherScript(scriptName: string): void
|
|
3257
3365
|
|
|
3258
3366
|
/** Resets the script. */
|
|
3259
3367
|
export function ResetScript(): void
|
|
@@ -3262,24 +3370,24 @@ declare namespace ll {
|
|
|
3262
3370
|
* Return objects using their UUIDs.
|
|
3263
3371
|
* Requires the PERMISSION_RETURN_OBJECTS permission and that the script owner owns the parcel the returned objects are in, or is an estate manager or region owner.
|
|
3264
3372
|
*/
|
|
3265
|
-
export function ReturnObjectsByID(
|
|
3373
|
+
export function ReturnObjectsByID(objectIDs: UUID[]): number
|
|
3266
3374
|
|
|
3267
3375
|
/**
|
|
3268
3376
|
* Return objects based upon their owner and a scope of parcel, parcel owner, or region.
|
|
3269
3377
|
* Requires the PERMISSION_RETURN_OBJECTS permission and that the script owner owns the parcel the returned objects are in, or is an estate manager or region owner.
|
|
3270
3378
|
*/
|
|
3271
|
-
export function ReturnObjectsByOwner(
|
|
3379
|
+
export function ReturnObjectsByOwner(id: UUID, scope: number): number
|
|
3272
3380
|
|
|
3273
3381
|
/**
|
|
3274
3382
|
* Instantiate owner's InventoryItem at Position with Velocity, Rotation and with StartParameter. The last selected root object's location will be set to Position.
|
|
3275
3383
|
* Creates object's inventory item at the given Position, with Velocity, Rotation, and StartParameter.
|
|
3276
3384
|
*/
|
|
3277
3385
|
export function RezAtRoot(
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3386
|
+
inventoryItem: string,
|
|
3387
|
+
position: Vector,
|
|
3388
|
+
velocity: Vector,
|
|
3389
|
+
rotation: Quaternion,
|
|
3390
|
+
startParameter: number,
|
|
3283
3391
|
): void
|
|
3284
3392
|
|
|
3285
3393
|
/**
|
|
@@ -3288,91 +3396,92 @@ declare namespace ll {
|
|
|
3288
3396
|
* The Velocity parameter is ignored if the rezzed object is not physical.
|
|
3289
3397
|
*/
|
|
3290
3398
|
export function RezObject(
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3399
|
+
inventoryItem: string,
|
|
3400
|
+
position: Vector,
|
|
3401
|
+
velocity: Vector,
|
|
3402
|
+
rotation: Quaternion,
|
|
3403
|
+
startParameter: number,
|
|
3296
3404
|
): void
|
|
3297
3405
|
|
|
3298
3406
|
/** Instantiate owner's InventoryItem with the given parameters. */
|
|
3299
|
-
export function RezObjectWithParams(
|
|
3407
|
+
export function RezObjectWithParams(inventoryItem: string, params: list): UUID
|
|
3300
3408
|
|
|
3301
3409
|
/**
|
|
3302
3410
|
* Returns the rotation angle represented by Rotation.
|
|
3303
3411
|
* Returns the angle represented by the Rotation.
|
|
3304
3412
|
*/
|
|
3305
|
-
export function Rot2Angle(
|
|
3413
|
+
export function Rot2Angle(rotation: Quaternion): number
|
|
3306
3414
|
|
|
3307
3415
|
/**
|
|
3308
3416
|
* Returns the rotation axis represented by Rotation.
|
|
3309
3417
|
* Returns the axis represented by the Rotation.
|
|
3310
3418
|
*/
|
|
3311
|
-
export function Rot2Axis(
|
|
3419
|
+
export function Rot2Axis(rotation: Quaternion): Vector
|
|
3312
3420
|
|
|
3313
3421
|
/**
|
|
3314
3422
|
* Returns the Euler representation (roll, pitch, yaw) of Rotation.
|
|
3315
3423
|
* Returns the Euler Angle representation of the Rotation.
|
|
3316
3424
|
*/
|
|
3317
|
-
export function Rot2Euler(
|
|
3425
|
+
export function Rot2Euler(rotation: Quaternion): Vector
|
|
3318
3426
|
|
|
3319
3427
|
/**
|
|
3320
3428
|
* Returns the forward vector defined by Rotation.
|
|
3321
3429
|
* Returns the forward axis represented by the Rotation.
|
|
3322
3430
|
*/
|
|
3323
|
-
export function Rot2Fwd(
|
|
3431
|
+
export function Rot2Fwd(rotation: Quaternion): Vector
|
|
3324
3432
|
|
|
3325
3433
|
/**
|
|
3326
3434
|
* Returns the left vector defined by Rotation.
|
|
3327
3435
|
* Returns the left axis represented by the Rotation.
|
|
3328
3436
|
*/
|
|
3329
|
-
export function Rot2Left(
|
|
3437
|
+
export function Rot2Left(rotation: Quaternion): Vector
|
|
3330
3438
|
|
|
3331
3439
|
/**
|
|
3332
3440
|
* Returns the up vector defined by Rotation.
|
|
3333
3441
|
* Returns the up axis represented by the Rotation.
|
|
3334
3442
|
*/
|
|
3335
|
-
export function Rot2Up(
|
|
3443
|
+
export function Rot2Up(rotation: Quaternion): Vector
|
|
3336
3444
|
|
|
3337
3445
|
/**
|
|
3338
3446
|
* Returns the rotation to rotate Vector1 to Vector2.
|
|
3339
3447
|
* Returns the rotation needed to rotate Vector1 to Vector2.
|
|
3340
3448
|
*/
|
|
3341
|
-
export function RotBetween(
|
|
3449
|
+
export function RotBetween(vector1: Vector, vector2: Vector): Quaternion
|
|
3342
3450
|
|
|
3343
3451
|
/**
|
|
3344
3452
|
* Cause object to rotate to Rotation, with a force function defined by Strength and Damping parameters. Good strength values are around half the mass of the object and good damping values are less than 1/10th of the strength.
|
|
3345
3453
|
* Asymmetrical shapes require smaller damping.
|
|
3346
3454
|
* A strength of 0.0 cancels the look at.
|
|
3347
3455
|
*/
|
|
3348
|
-
export function RotLookAt(
|
|
3456
|
+
export function RotLookAt(rotation: Quaternion, strength: number, damping: number): void
|
|
3349
3457
|
|
|
3350
3458
|
/**
|
|
3351
3459
|
* Set rotations with error of LeeWay radians as a rotational target, and return an ID for the rotational target.
|
|
3352
3460
|
* The returned number is a handle that can be used in at_rot_target and llRotTargetRemove.
|
|
3353
3461
|
*/
|
|
3354
|
-
export function RotTarget(
|
|
3462
|
+
export function RotTarget(rotation: Quaternion, leeWay: number): number
|
|
3355
3463
|
|
|
3356
3464
|
/**
|
|
3357
3465
|
* Removes rotational target number.
|
|
3358
3466
|
* Remove rotational target indicated by the handle.
|
|
3359
3467
|
*/
|
|
3360
|
-
export function RotTargetRemove(
|
|
3468
|
+
export function RotTargetRemove(handle: number): void
|
|
3361
3469
|
|
|
3362
3470
|
/**
|
|
3363
3471
|
* Sets the texture rotation for the specified Face to angle Radians.
|
|
3364
3472
|
* If Face is ALL_SIDES, rotates the texture of all sides.
|
|
3365
3473
|
*/
|
|
3366
|
-
export function RotateTexture(
|
|
3474
|
+
export function RotateTexture(radians: number, face: number): void
|
|
3367
3475
|
|
|
3368
3476
|
/**
|
|
3369
3477
|
* Returns Value rounded to the nearest integer.
|
|
3370
3478
|
* Returns the Value rounded to the nearest integer.
|
|
3479
|
+
* @deprecated Use 'math.round' instead. It's a fastcall.
|
|
3371
3480
|
*/
|
|
3372
|
-
export function Round(
|
|
3481
|
+
export function Round(value: number): number
|
|
3373
3482
|
|
|
3374
3483
|
/** Returns a string of 40 hex characters that is the SHA1 security hash of text. */
|
|
3375
|
-
export function SHA1String(
|
|
3484
|
+
export function SHA1String(text: string): string
|
|
3376
3485
|
|
|
3377
3486
|
/** Returns a string of 64 hex characters that is the SHA256 security hash of text. */
|
|
3378
3487
|
export function SHA256String(text: string): string
|
|
@@ -3381,14 +3490,14 @@ declare namespace ll {
|
|
|
3381
3490
|
* Returns TRUE if avatar ID is in the same region and has the same active group, otherwise FALSE.
|
|
3382
3491
|
* Returns TRUE if the object or agent identified is in the same simulator and has the same active group as this object. Otherwise, returns FALSE.
|
|
3383
3492
|
*/
|
|
3384
|
-
export function SameGroup(
|
|
3493
|
+
export function SameGroup(id: UUID): number
|
|
3385
3494
|
|
|
3386
3495
|
/**
|
|
3387
3496
|
* Says Text on Channel.
|
|
3388
3497
|
* This chat method has a range of 20m radius.
|
|
3389
3498
|
* PUBLIC_CHANNEL is the public chat channel that all avatars see as chat text. DEBUG_CHANNEL is the script debug channel, and is also visible to nearby avatars. All other channels are are not sent to avatars, but may be used to communicate with scripts.
|
|
3390
3499
|
*/
|
|
3391
|
-
export function Say(
|
|
3500
|
+
export function Say(channel: number, text: string): void
|
|
3392
3501
|
|
|
3393
3502
|
/**
|
|
3394
3503
|
* Attempts to resize the entire object by ScalingFactor, maintaining the size-position ratios of the prims.
|
|
@@ -3396,41 +3505,44 @@ declare namespace ll {
|
|
|
3396
3505
|
* Resizing is subject to prim scale limits and linkability limits. This function can not resize the object if the linkset is physical, a pathfinding character, in a keyframed motion, or if resizing would cause the parcel to overflow.
|
|
3397
3506
|
* Returns a boolean (an integer) TRUE if it succeeds, FALSE if it fails.
|
|
3398
3507
|
*/
|
|
3399
|
-
export function ScaleByFactor(
|
|
3508
|
+
export function ScaleByFactor(scalingFactor: number): number
|
|
3400
3509
|
|
|
3401
3510
|
/**
|
|
3402
3511
|
* Sets the diffuse texture Horizontal and Vertical repeats on Face of the prim the script is attached to.
|
|
3403
3512
|
* If Face == ALL_SIDES, all sides are set in one call.
|
|
3404
3513
|
* Negative values for horizontal and vertical will flip the texture.
|
|
3405
3514
|
*/
|
|
3406
|
-
export function ScaleTexture(
|
|
3515
|
+
export function ScaleTexture(horizontal: number, vertical: number, face: number): void
|
|
3407
3516
|
|
|
3408
3517
|
/**
|
|
3409
3518
|
* Returns TRUE if Position is over public land, sandbox land, land that doesn't allow everyone to edit and build, or land that doesn't allow outside scripts.
|
|
3410
3519
|
* Returns true if the position is over public land, land that doesn't allow everyone to edit and build, or land that doesn't allow outside scripts.
|
|
3411
3520
|
*/
|
|
3412
|
-
export function ScriptDanger(
|
|
3521
|
+
export function ScriptDanger(position: Vector): number
|
|
3413
3522
|
|
|
3414
3523
|
/**
|
|
3415
3524
|
* Enables or disables script profiling options. Currently only supports PROFILE_SCRIPT_MEMORY (Mono only) and PROFILE_NONE.
|
|
3416
3525
|
* May significantly reduce script performance.
|
|
3417
3526
|
*/
|
|
3418
|
-
export function ScriptProfiler(
|
|
3527
|
+
export function ScriptProfiler(state: number): void
|
|
3419
3528
|
|
|
3420
|
-
/**
|
|
3529
|
+
/**
|
|
3530
|
+
* This function is deprecated.
|
|
3531
|
+
* @deprecated
|
|
3532
|
+
*/
|
|
3421
3533
|
export function SendRemoteData(
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
):
|
|
3534
|
+
channelId: UUID,
|
|
3535
|
+
destination: string,
|
|
3536
|
+
value: number,
|
|
3537
|
+
text: string,
|
|
3538
|
+
): UUID
|
|
3427
3539
|
|
|
3428
3540
|
/**
|
|
3429
3541
|
* Performs a single scan for Name and ID with Type (AGENT, ACTIVE, PASSIVE, and/or SCRIPTED) within Range meters and Arc radians of forward vector.
|
|
3430
3542
|
* Specifying a blank Name, 0 Type, or NULL_KEY ID will prevent filtering results based on that parameter. A range of 0.0 does not perform a scan.
|
|
3431
3543
|
* Results are returned in the sensor and no_sensor events.
|
|
3432
3544
|
*/
|
|
3433
|
-
export function Sensor(
|
|
3545
|
+
export function Sensor(name: string, id: UUID, type: number, range: number, arc: number): void
|
|
3434
3546
|
|
|
3435
3547
|
/**
|
|
3436
3548
|
* removes sensor.
|
|
@@ -3444,111 +3556,112 @@ declare namespace ll {
|
|
|
3444
3556
|
* Results are returned in the sensor and no_sensor events.
|
|
3445
3557
|
*/
|
|
3446
3558
|
export function SensorRepeat(
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3559
|
+
name: string,
|
|
3560
|
+
id: UUID,
|
|
3561
|
+
type: number,
|
|
3562
|
+
range: number,
|
|
3563
|
+
arc: number,
|
|
3564
|
+
rate: number,
|
|
3453
3565
|
): void
|
|
3454
3566
|
|
|
3455
3567
|
/** Sets an agent's environmental values to the specified values. Must be used as part of an experience. */
|
|
3456
|
-
export function SetAgentEnvironment(
|
|
3568
|
+
export function SetAgentEnvironment(agentId: UUID, transition: number, settings: list): number
|
|
3457
3569
|
|
|
3458
3570
|
/** Sets the avatar rotation to the given value. */
|
|
3459
|
-
export function SetAgentRot(rot:
|
|
3571
|
+
export function SetAgentRot(rot: Quaternion, flags: number): void
|
|
3460
3572
|
|
|
3461
3573
|
/**
|
|
3462
3574
|
* Sets the alpha (opacity) of Face.
|
|
3463
3575
|
* Sets the alpha (opacity) value for Face. If Face is ALL_SIDES, sets the alpha for all faces. The alpha value is interpreted as an opacity percentage (1.0 is fully opaque, and 0.2 is mostly transparent). This function will clamp alpha values less than 0.1 to 0.1 and greater than 1.0 to 1.
|
|
3464
3576
|
*/
|
|
3465
|
-
export function SetAlpha(
|
|
3577
|
+
export function SetAlpha(opacity: number, face: number): void
|
|
3466
3578
|
|
|
3467
3579
|
/**
|
|
3468
3580
|
* Sets an object's angular velocity to AngVel, in local coordinates if Local == TRUE (if the script is physical).
|
|
3469
3581
|
* Has no effect on non-physical objects.
|
|
3470
3582
|
*/
|
|
3471
|
-
export function SetAngularVelocity(
|
|
3583
|
+
export function SetAngularVelocity(angVel: Vector, local: number): void
|
|
3472
3584
|
|
|
3473
3585
|
/**
|
|
3474
3586
|
* Sets the animation (in object inventory) that will play for the given animation state.
|
|
3475
3587
|
* To use this function the script must obtain the PERMISSION_OVERRIDE_ANIMATIONS permission.
|
|
3476
3588
|
*/
|
|
3477
|
-
export function SetAnimationOverride(
|
|
3589
|
+
export function SetAnimationOverride(animationState: string, animationName: string): void
|
|
3478
3590
|
|
|
3479
3591
|
/**
|
|
3480
3592
|
* Set the tasks buoyancy (0 is none, < 1.0 sinks, 1.0 floats, > 1.0 rises).
|
|
3481
3593
|
* Set the object buoyancy. A value of 0 is none, less than 1.0 sinks, 1.0 floats, and greater than 1.0 rises.
|
|
3482
3594
|
*/
|
|
3483
|
-
export function SetBuoyancy(
|
|
3595
|
+
export function SetBuoyancy(buoyancy: number): void
|
|
3484
3596
|
|
|
3485
3597
|
/**
|
|
3486
3598
|
* Sets the camera used in this object, at offset, if an avatar sits on it.
|
|
3487
3599
|
* Sets the offset that an avatar's camera will be moved to if the avatar sits on the object.
|
|
3488
3600
|
*/
|
|
3489
|
-
export function SetCameraAtOffset(
|
|
3601
|
+
export function SetCameraAtOffset(offset: Vector): void
|
|
3490
3602
|
|
|
3491
3603
|
/** Sets the camera eye offset used in this object if an avatar sits on it. */
|
|
3492
|
-
export function SetCameraEyeOffset(
|
|
3604
|
+
export function SetCameraEyeOffset(offset: Vector): void
|
|
3493
3605
|
|
|
3494
3606
|
/**
|
|
3495
3607
|
* Sets multiple camera parameters at once. List format is [ rule-1, data-1, rule-2, data-2 . . . rule-n, data-n ].
|
|
3496
3608
|
* Requires the PERMISSION_CONTROL_CAMERA runtime permission (automatically granted to attached or sat on objects).
|
|
3497
3609
|
*/
|
|
3498
|
-
export function SetCameraParams(
|
|
3610
|
+
export function SetCameraParams(parameters: list): void
|
|
3499
3611
|
|
|
3500
3612
|
/** Sets the action performed when a prim is clicked upon. */
|
|
3501
|
-
export function SetClickAction(
|
|
3613
|
+
export function SetClickAction(action: number): void
|
|
3502
3614
|
|
|
3503
3615
|
/**
|
|
3504
3616
|
* Sets the color, for the face.
|
|
3505
3617
|
* Sets the color of the side specified. If Face is ALL_SIDES, sets the color on all faces.
|
|
3506
3618
|
*/
|
|
3507
|
-
export function SetColor(
|
|
3619
|
+
export function SetColor(color: Vector, face: number): void
|
|
3508
3620
|
|
|
3509
3621
|
/**
|
|
3510
3622
|
* Set the media type of an LSL HTTP server response to ContentType.
|
|
3511
3623
|
* HTTPRequestID must be a valid http_request ID. ContentType must be one of the CONTENT_TYPE_* constants.
|
|
3512
3624
|
*/
|
|
3513
|
-
export function SetContentType(
|
|
3625
|
+
export function SetContentType(httpRequestId: UUID, contentType: number): void
|
|
3514
3626
|
|
|
3515
3627
|
/**
|
|
3516
3628
|
* Sets the amount of damage that will be done to an avatar that this task hits. Task will be killed.
|
|
3517
3629
|
* Sets the amount of damage that will be done to an avatar that this object hits. This object will be destroyed on damaging an avatar, and no collision event is triggered.
|
|
3518
3630
|
*/
|
|
3519
|
-
export function SetDamage(
|
|
3631
|
+
export function SetDamage(damage: number): void
|
|
3520
3632
|
|
|
3521
3633
|
/** Returns a string with the requested data about the region. */
|
|
3522
|
-
export function SetEnvironment(
|
|
3634
|
+
export function SetEnvironment(position: Vector, envParams: list): number
|
|
3523
3635
|
|
|
3524
|
-
|
|
3636
|
+
/** @deprecated */
|
|
3637
|
+
export function SetExperienceKey(experienceId: UUID): number
|
|
3525
3638
|
|
|
3526
3639
|
/**
|
|
3527
3640
|
* Sets Force on object, in object-local coordinates if Local == TRUE (otherwise, the region reference frame is used).
|
|
3528
3641
|
* Only works on physical objects.
|
|
3529
3642
|
*/
|
|
3530
|
-
export function SetForce(
|
|
3643
|
+
export function SetForce(force: Vector, local: number): void
|
|
3531
3644
|
|
|
3532
3645
|
/**
|
|
3533
3646
|
* Sets the Force and Torque of object, in object-local coordinates if Local == TRUE (otherwise, the region reference frame is used).
|
|
3534
3647
|
* Only works on physical objects.
|
|
3535
3648
|
*/
|
|
3536
|
-
export function SetForceAndTorque(
|
|
3649
|
+
export function SetForceAndTorque(force: Vector, torque: Vector, local: number): void
|
|
3537
3650
|
|
|
3538
3651
|
/** Changes terrain texture properties in the region. */
|
|
3539
|
-
export function SetGroundTexture(
|
|
3652
|
+
export function SetGroundTexture(changes: list): number
|
|
3540
3653
|
|
|
3541
3654
|
/**
|
|
3542
3655
|
* Critically damps a physical object to a Height (either above ground level or above the higher of land and water if water == TRUE).
|
|
3543
3656
|
* Do not use with vehicles. Use llStopHover to stop hovering.
|
|
3544
3657
|
*/
|
|
3545
|
-
export function SetHoverHeight(
|
|
3658
|
+
export function SetHoverHeight(height: number, water: number, tau: number): void
|
|
3546
3659
|
|
|
3547
3660
|
/** Sets the given permission mask to the new value on the inventory item. */
|
|
3548
3661
|
export function SetInventoryPermMask(
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3662
|
+
inventoryItem: string,
|
|
3663
|
+
permissionFlag: number,
|
|
3664
|
+
permissionMask: number,
|
|
3552
3665
|
): void
|
|
3553
3666
|
|
|
3554
3667
|
/**
|
|
@@ -3556,22 +3669,22 @@ declare namespace ll {
|
|
|
3556
3669
|
* Specify a list of times, positions, and orientations to be followed by an object. The object will be smoothly moved between key-frames by the simulator. Collisions with other non-physical or key-framed objects will be ignored (no script events will fire and collision processing will not occur). Collisions with physical objects will be computed and reported, but the key-framed object will be unaffected by those collisions.
|
|
3557
3670
|
* Keyframes is a strided list containing positional, rotational, and time data for each step in the motion. Options is a list containing optional arguments and parameters (specified by KFM_* constants).
|
|
3558
3671
|
*/
|
|
3559
|
-
export function SetKeyframedMotion(
|
|
3672
|
+
export function SetKeyframedMotion(keyframes: list, options: list): void
|
|
3560
3673
|
|
|
3561
3674
|
/**
|
|
3562
3675
|
* If a prim exists in the link chain at LinkNumber, set Face to Opacity.
|
|
3563
3676
|
* Sets the Face, on the linked prim specified, to the Opacity.
|
|
3564
3677
|
*/
|
|
3565
|
-
export function SetLinkAlpha(
|
|
3678
|
+
export function SetLinkAlpha(linkNumber: number, opacity: number, face: number): void
|
|
3566
3679
|
|
|
3567
3680
|
/** Sets the camera eye offset, and the offset that camera is looking at, for avatars that sit on the linked prim. */
|
|
3568
|
-
export function SetLinkCamera(
|
|
3681
|
+
export function SetLinkCamera(linkNumber: number, eyeOffset: Vector, lookOffset: Vector): void
|
|
3569
3682
|
|
|
3570
3683
|
/**
|
|
3571
3684
|
* If a task exists in the link chain at LinkNumber, set the Face to color.
|
|
3572
3685
|
* Sets the color of the linked child's side, specified by LinkNumber.
|
|
3573
3686
|
*/
|
|
3574
|
-
export function SetLinkColor(
|
|
3687
|
+
export function SetLinkColor(linkNumber: number, color: Vector, face: number): void
|
|
3575
3688
|
|
|
3576
3689
|
/** Sets or changes GLTF Overrides set on the selected faces. */
|
|
3577
3690
|
export function SetLinkGLTFOverrides(link: number, face: number, options: list): void
|
|
@@ -3580,29 +3693,32 @@ declare namespace ll {
|
|
|
3580
3693
|
* Set the media parameters for a particular face on linked prim, specified by Link. Returns an integer that is a STATUS_* flag which details the success/failure of the operation(s).
|
|
3581
3694
|
* MediaParameters is a set of name/value pairs in no particular order. Parameters not specified are unchanged, or if new media is added then set to the default specified.
|
|
3582
3695
|
*/
|
|
3583
|
-
export function SetLinkMedia(
|
|
3696
|
+
export function SetLinkMedia(link: number, face: number, parameters: list): number
|
|
3584
3697
|
|
|
3585
|
-
/**
|
|
3586
|
-
|
|
3698
|
+
/**
|
|
3699
|
+
* Deprecated: Use llSetLinkPrimitiveParamsFast instead.
|
|
3700
|
+
* @deprecated Use 'll.SetLinkPrimitiveParamsFast' instead.
|
|
3701
|
+
*/
|
|
3702
|
+
export function SetLinkPrimitiveParams(linkNumber: number, parameters: list): void
|
|
3587
3703
|
|
|
3588
3704
|
/**
|
|
3589
3705
|
* Set primitive parameters for LinkNumber based on Parameters, without a delay.
|
|
3590
3706
|
* Set parameters for link number, from the list of Parameters, with no built-in script sleep. This function is identical to llSetLinkPrimitiveParams, except without the delay.
|
|
3591
3707
|
*/
|
|
3592
|
-
export function SetLinkPrimitiveParamsFast(
|
|
3708
|
+
export function SetLinkPrimitiveParamsFast(linkNumber: number, parameters: list): void
|
|
3593
3709
|
|
|
3594
3710
|
/** Sets the Render Material of Face on a linked prim, specified by LinkNumber. Render Material may be a UUID or name of a material in prim inventory. */
|
|
3595
3711
|
export function SetLinkRenderMaterial(
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3712
|
+
linkNumber: number,
|
|
3713
|
+
renderMaterial: string,
|
|
3714
|
+
face: number,
|
|
3599
3715
|
): void
|
|
3600
3716
|
|
|
3601
3717
|
/** Sets the sit flags for the specified prim in a linkset. */
|
|
3602
|
-
export function SetLinkSitFlags(
|
|
3718
|
+
export function SetLinkSitFlags(linkNumber: number, flags: number): void
|
|
3603
3719
|
|
|
3604
3720
|
/** Sets the Texture of Face on a linked prim, specified by LinkNumber. Texture may be a UUID or name of a texture in prim inventory. */
|
|
3605
|
-
export function SetLinkTexture(
|
|
3721
|
+
export function SetLinkTexture(linkNumber: number, texture: string, face: number): void
|
|
3606
3722
|
|
|
3607
3723
|
/**
|
|
3608
3724
|
* Animates a texture on the prim specified by LinkNumber, by setting the texture scale and offset.
|
|
@@ -3613,30 +3729,30 @@ declare namespace ll {
|
|
|
3613
3729
|
* Rate specifies the animation playback rate.
|
|
3614
3730
|
*/
|
|
3615
3731
|
export function SetLinkTextureAnim(
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3732
|
+
linkNumber: number,
|
|
3733
|
+
mode: number,
|
|
3734
|
+
face: number,
|
|
3735
|
+
sizeX: number,
|
|
3736
|
+
sizeY: number,
|
|
3737
|
+
start: number,
|
|
3738
|
+
length: number,
|
|
3739
|
+
rate: number,
|
|
3624
3740
|
): void
|
|
3625
3741
|
|
|
3626
3742
|
/** Sets the rotation of a child prim relative to the root prim. */
|
|
3627
|
-
export function SetLocalRot(
|
|
3743
|
+
export function SetLocalRot(rotation: Quaternion): void
|
|
3628
3744
|
|
|
3629
3745
|
/**
|
|
3630
3746
|
* Sets the description of the prim to Description.
|
|
3631
3747
|
* The description field is limited to 127 characters.
|
|
3632
3748
|
*/
|
|
3633
|
-
export function SetObjectDesc(
|
|
3749
|
+
export function SetObjectDesc(description: string): void
|
|
3634
3750
|
|
|
3635
3751
|
/** Sets the prim's name to Name. */
|
|
3636
|
-
export function SetObjectName(
|
|
3752
|
+
export function SetObjectName(name: string): void
|
|
3637
3753
|
|
|
3638
3754
|
/** Sets the specified PermissionFlag permission to the value specified by PermissionMask on the object the script is attached to. */
|
|
3639
|
-
export function SetObjectPermMask(
|
|
3755
|
+
export function SetObjectPermMask(permissionFlag: number, permissionMask: number): void
|
|
3640
3756
|
|
|
3641
3757
|
/**
|
|
3642
3758
|
* Sets the parcel the object is on for sale.
|
|
@@ -3644,31 +3760,31 @@ declare namespace ll {
|
|
|
3644
3760
|
* Setting ForSale to FALSE will remove the parcel from sale and clear any options that were set.
|
|
3645
3761
|
* Requires the PERMISSION_PRIVILEGED_LAND_ACCESS permission.
|
|
3646
3762
|
*/
|
|
3647
|
-
export function SetParcelForSale(
|
|
3763
|
+
export function SetParcelForSale(forSale: number, options: list): number
|
|
3648
3764
|
|
|
3649
3765
|
/**
|
|
3650
3766
|
* Sets the streaming audio URL for the parcel the object is on.
|
|
3651
3767
|
* The object must be owned by the owner of the parcel; if the parcel is group owned the object must be owned by that group.
|
|
3652
3768
|
*/
|
|
3653
|
-
export function SetParcelMusicURL(
|
|
3769
|
+
export function SetParcelMusicURL(url: string): void
|
|
3654
3770
|
|
|
3655
3771
|
/**
|
|
3656
3772
|
* Sets the default amount when someone chooses to pay this object.
|
|
3657
3773
|
* Price is the default price shown in the text input field. QuickButtons specifies the 4 payment values shown in the payment dialog's buttons.
|
|
3658
3774
|
* Input field and buttons may be hidden with PAY_HIDE constant, and may be set to their default values using PAY_DEFAULT.
|
|
3659
3775
|
*/
|
|
3660
|
-
export function SetPayPrice(
|
|
3776
|
+
export function SetPayPrice(price: number, quickButtons: number[]): void
|
|
3661
3777
|
|
|
3662
3778
|
/**
|
|
3663
3779
|
* Sets the selected parameters of the object's physics behavior.
|
|
3664
3780
|
* MaterialBits is a bitmask specifying which of the parameters in the other arguments should be applied to the object. GravityMultiplier, Restitution, Friction, and Density are the possible parameters to manipulate.
|
|
3665
3781
|
*/
|
|
3666
3782
|
export function SetPhysicsMaterial(
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3783
|
+
materialBits: number,
|
|
3784
|
+
gravityMultiplier: number,
|
|
3785
|
+
restitution: number,
|
|
3786
|
+
friction: number,
|
|
3787
|
+
density: number,
|
|
3672
3788
|
): void
|
|
3673
3789
|
|
|
3674
3790
|
/**
|
|
@@ -3676,19 +3792,25 @@ declare namespace ll {
|
|
|
3676
3792
|
* If the script is in a child prim, Position is treated as root relative and the link-set is adjusted.
|
|
3677
3793
|
* If the prim is the root prim, the entire object is moved (up to 10m) to Position in region coordinates.
|
|
3678
3794
|
*/
|
|
3679
|
-
export function SetPos(
|
|
3795
|
+
export function SetPos(position: Vector): void
|
|
3680
3796
|
|
|
3681
3797
|
/**
|
|
3682
3798
|
* Sets the MediaParameters for a particular Face on the prim. Returns an integer that is a STATUS_* flag which details the success/failure of the operation(s).
|
|
3683
3799
|
* MediaParameters is a set of name/value pairs in no particular order. Parameters not specified are unchanged, or if new media is added then set to the default specified.
|
|
3684
3800
|
*/
|
|
3685
|
-
export function SetPrimMediaParams(
|
|
3801
|
+
export function SetPrimMediaParams(face: number, mediaParameters: list): number
|
|
3686
3802
|
|
|
3687
|
-
/**
|
|
3688
|
-
|
|
3803
|
+
/**
|
|
3804
|
+
* Deprecated: Use llSetPrimMediaParams instead.
|
|
3805
|
+
* @deprecated Use 'll.SetPrimMediaParams' instead.
|
|
3806
|
+
*/
|
|
3807
|
+
export function SetPrimURL(url: string): void
|
|
3689
3808
|
|
|
3690
|
-
/**
|
|
3691
|
-
|
|
3809
|
+
/**
|
|
3810
|
+
* Deprecated: Use llSetLinkPrimitiveParamsFast instead.
|
|
3811
|
+
* @deprecated Use 'll.SetLinkPrimitiveParamsFast' instead.
|
|
3812
|
+
*/
|
|
3813
|
+
export function SetPrimitiveParams(parameters: list): void
|
|
3692
3814
|
|
|
3693
3815
|
/**
|
|
3694
3816
|
* Attempts to move the object so that the root prim is within 0.1m of Position.
|
|
@@ -3696,58 +3818,58 @@ declare namespace ll {
|
|
|
3696
3818
|
* Position may be any location within the region or up to 10m across a region border.
|
|
3697
3819
|
* If the position is below ground, it will be set to the ground level at that x,y location.
|
|
3698
3820
|
*/
|
|
3699
|
-
export function SetRegionPos(
|
|
3821
|
+
export function SetRegionPos(position: Vector): number
|
|
3700
3822
|
|
|
3701
3823
|
/** If PIN is set to a non-zero number, the task will accept remote script loads via llRemoteLoadScriptPin() if it passes in the correct PIN. Othersise, llRemoteLoadScriptPin() is ignored. */
|
|
3702
|
-
export function SetRemoteScriptAccessPin(
|
|
3824
|
+
export function SetRemoteScriptAccessPin(pin: number): void
|
|
3703
3825
|
|
|
3704
3826
|
/**
|
|
3705
3827
|
* Applies Render Material to Face of prim.
|
|
3706
3828
|
* Render Material may be a UUID or name of a material in prim inventory.
|
|
3707
3829
|
* If Face is ALL_SIDES, set the render material on all faces.
|
|
3708
3830
|
*/
|
|
3709
|
-
export function SetRenderMaterial(
|
|
3831
|
+
export function SetRenderMaterial(material: string, face: number): void
|
|
3710
3832
|
|
|
3711
3833
|
/**
|
|
3712
3834
|
* If the object is not physical, this function sets the rotation of the prim.
|
|
3713
3835
|
* If the script is in a child prim, Rotation is treated as root relative and the link-set is adjusted.
|
|
3714
3836
|
* If the prim is the root prim, the entire object is rotated to Rotation in the global reference frame.
|
|
3715
3837
|
*/
|
|
3716
|
-
export function SetRot(
|
|
3838
|
+
export function SetRot(rotation: Quaternion): void
|
|
3717
3839
|
|
|
3718
3840
|
/** Sets the prim's scale (size) to Scale. */
|
|
3719
|
-
export function SetScale(
|
|
3841
|
+
export function SetScale(scale: Vector): void
|
|
3720
3842
|
|
|
3721
3843
|
/** Enable or disable the script Running state of Script in the prim. */
|
|
3722
|
-
export function SetScriptState(
|
|
3844
|
+
export function SetScriptState(scriptName: string, running: number): void
|
|
3723
3845
|
|
|
3724
3846
|
/** Displays Text rather than 'Sit' in the viewer's context menu. */
|
|
3725
|
-
export function SetSitText(
|
|
3847
|
+
export function SetSitText(text: string): void
|
|
3726
3848
|
|
|
3727
3849
|
/**
|
|
3728
3850
|
* Sets whether successive calls to llPlaySound, llLoopSound, etc., (attached sounds) interrupt the currently playing sound.
|
|
3729
3851
|
* The default for objects is FALSE. Setting this value to TRUE will make the sound wait until the current playing sound reaches its end. The queue is one level deep.
|
|
3730
3852
|
*/
|
|
3731
|
-
export function SetSoundQueueing(
|
|
3853
|
+
export function SetSoundQueueing(queueEnable: number): void
|
|
3732
3854
|
|
|
3733
3855
|
/** Limits radius for audibility of scripted sounds (both attached and triggered) to distance Radius. */
|
|
3734
|
-
export function SetSoundRadius(
|
|
3856
|
+
export function SetSoundRadius(radius: number): void
|
|
3735
3857
|
|
|
3736
3858
|
/**
|
|
3737
3859
|
* Sets object status specified in Status bitmask (e.g. STATUS_PHYSICS|STATUS_PHANTOM) to boolean Value.
|
|
3738
3860
|
* For a full list of STATUS_* constants, see wiki documentation.
|
|
3739
3861
|
*/
|
|
3740
|
-
export function SetStatus(
|
|
3862
|
+
export function SetStatus(status: number, value: number): void
|
|
3741
3863
|
|
|
3742
3864
|
/** Causes Text to float above the prim, using the specified Color and Opacity. */
|
|
3743
|
-
export function SetText(
|
|
3865
|
+
export function SetText(text: string, color: Vector, opacity: number): void
|
|
3744
3866
|
|
|
3745
3867
|
/**
|
|
3746
3868
|
* Applies Texture to Face of prim.
|
|
3747
3869
|
* Texture may be a UUID or name of a texture in prim inventory.
|
|
3748
3870
|
* If Face is ALL_SIDES, set the texture on all faces.
|
|
3749
3871
|
*/
|
|
3750
|
-
export function SetTexture(
|
|
3872
|
+
export function SetTexture(texture: string, face: number): void
|
|
3751
3873
|
|
|
3752
3874
|
/**
|
|
3753
3875
|
* Animates a texture by setting the texture scale and offset.
|
|
@@ -3758,119 +3880,125 @@ declare namespace ll {
|
|
|
3758
3880
|
* Rate specifies the animation playback rate.
|
|
3759
3881
|
*/
|
|
3760
3882
|
export function SetTextureAnim(
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3883
|
+
mode: number,
|
|
3884
|
+
face: number,
|
|
3885
|
+
sizeX: number,
|
|
3886
|
+
sizeY: number,
|
|
3887
|
+
start: number,
|
|
3888
|
+
length: number,
|
|
3889
|
+
rate: number,
|
|
3768
3890
|
): void
|
|
3769
3891
|
|
|
3770
3892
|
/**
|
|
3771
3893
|
* Sets the Torque acting on the script's object, in object-local coordinates if Local == TRUE (otherwise, the region reference frame is used).
|
|
3772
3894
|
* Only works on physical objects.
|
|
3773
3895
|
*/
|
|
3774
|
-
export function SetTorque(
|
|
3896
|
+
export function SetTorque(torque: Vector, local: number): void
|
|
3775
3897
|
|
|
3776
3898
|
/** Displays Text in the viewer context menu that acts on a touch. */
|
|
3777
|
-
export function SetTouchText(
|
|
3899
|
+
export function SetTouchText(text: string): void
|
|
3778
3900
|
|
|
3779
3901
|
/**
|
|
3780
3902
|
* Enables the vehicle flags specified in the Flags bitmask.
|
|
3781
3903
|
* Valid parameters can be found in the wiki documentation.
|
|
3782
3904
|
*/
|
|
3783
|
-
export function SetVehicleFlags(
|
|
3905
|
+
export function SetVehicleFlags(flags: number): void
|
|
3784
3906
|
|
|
3785
3907
|
/**
|
|
3786
3908
|
* Sets a vehicle float parameter.
|
|
3787
3909
|
* Valid parameters can be found in the wiki documentation.
|
|
3788
3910
|
*/
|
|
3789
|
-
export function SetVehicleFloatParam(
|
|
3911
|
+
export function SetVehicleFloatParam(parameterName: number, parameterValue: number): void
|
|
3790
3912
|
|
|
3791
3913
|
/**
|
|
3792
3914
|
* Sets a vehicle rotation parameter.
|
|
3793
3915
|
* Valid parameters can be found in the wiki documentation.
|
|
3794
3916
|
*/
|
|
3795
|
-
export function SetVehicleRotationParam(
|
|
3917
|
+
export function SetVehicleRotationParam(parameterName: number, parameterValue: Quaternion): void
|
|
3796
3918
|
|
|
3797
3919
|
/**
|
|
3798
3920
|
* Activates the vehicle action on the object with vehicle preset Type.
|
|
3799
3921
|
* Valid Types and an explanation of their characteristics can be found in wiki documentation.
|
|
3800
3922
|
*/
|
|
3801
|
-
export function SetVehicleType(
|
|
3923
|
+
export function SetVehicleType(type: number): void
|
|
3802
3924
|
|
|
3803
3925
|
/**
|
|
3804
3926
|
* Sets a vehicle vector parameter.
|
|
3805
3927
|
* Valid parameters can be found in the wiki documentation.
|
|
3806
3928
|
*/
|
|
3807
|
-
export function SetVehicleVectorParam(
|
|
3929
|
+
export function SetVehicleVectorParam(parameterName: number, parameterValue: Vector): void
|
|
3808
3930
|
|
|
3809
3931
|
/**
|
|
3810
3932
|
* If the object is physics-enabled, sets the object's linear velocity to Velocity.
|
|
3811
3933
|
* If Local==TRUE, Velocity is treated as a local directional vector; otherwise, Velocity is treated as a global directional vector.
|
|
3812
3934
|
*/
|
|
3813
|
-
export function SetVelocity(
|
|
3935
|
+
export function SetVelocity(velocity: Vector, local: number): void
|
|
3814
3936
|
|
|
3815
3937
|
/**
|
|
3816
3938
|
* Shouts Text on Channel.
|
|
3817
3939
|
* This chat method has a range of 100m radius.
|
|
3818
3940
|
* PUBLIC_CHANNEL is the public chat channel that all avatars see as chat text. DEBUG_CHANNEL is the script debug channel, and is also visible to nearby avatars. All other channels are are not sent to avatars, but may be used to communicate with scripts.
|
|
3819
3941
|
*/
|
|
3820
|
-
export function Shout(
|
|
3942
|
+
export function Shout(channel: number, text: string): void
|
|
3821
3943
|
|
|
3822
3944
|
/** Returns the base64-encoded RSA signature of Message using PEM-formatted PrivateKey and digest Algorithm (sha1, sha224, sha256, sha384, sha512). */
|
|
3823
|
-
export function SignRSA(
|
|
3945
|
+
export function SignRSA(privateKey: string, message: string, algorithm: string): string
|
|
3824
3946
|
|
|
3825
|
-
/**
|
|
3826
|
-
|
|
3947
|
+
/**
|
|
3948
|
+
* Returns the sine of Theta (Theta in radians).
|
|
3949
|
+
* @deprecated Use 'math.sin' instead. It's a fastcall.
|
|
3950
|
+
*/
|
|
3951
|
+
export function Sin(theta: number): number
|
|
3827
3952
|
|
|
3828
3953
|
/** If agent identified by AvatarID is participating in the experience, sit them on the specified link's sit target. */
|
|
3829
|
-
export function SitOnLink(
|
|
3954
|
+
export function SitOnLink(avatarId: UUID, linkId: number): number
|
|
3830
3955
|
|
|
3831
3956
|
/** Set the sit location for this object. If offset == ZERO_VECTOR, clears the sit target. */
|
|
3832
|
-
export function SitTarget(
|
|
3957
|
+
export function SitTarget(offset: Vector, rotation: Quaternion): void
|
|
3833
3958
|
|
|
3834
3959
|
/** Put script to sleep for Time seconds. */
|
|
3835
|
-
export function Sleep(
|
|
3960
|
+
export function Sleep(time: number): void
|
|
3836
3961
|
|
|
3837
3962
|
/**
|
|
3838
3963
|
* Deprecated: Use llPlaySound instead.
|
|
3839
3964
|
* Plays Sound at Volume and specifies whether the sound should loop and/or be enqueued.
|
|
3965
|
+
* @deprecated Use 'll.PlaySound' instead.
|
|
3840
3966
|
*/
|
|
3841
|
-
export function Sound(
|
|
3967
|
+
export function Sound(sound: string, volume: number, queue: number, loop: number): void
|
|
3842
3968
|
|
|
3843
3969
|
/**
|
|
3844
3970
|
* Deprecated: Use llPreloadSound instead.
|
|
3845
3971
|
* Preloads a sound on viewers within range.
|
|
3972
|
+
* @deprecated Use 'll.PreloadSound' instead.
|
|
3846
3973
|
*/
|
|
3847
|
-
export function SoundPreload(
|
|
3974
|
+
export function SoundPreload(sound: string): void
|
|
3848
3975
|
|
|
3849
3976
|
/**
|
|
3850
3977
|
* Returns the square root of Value.
|
|
3851
3978
|
* Triggers a math runtime error for imaginary results (if Value < 0.0).
|
|
3979
|
+
* @deprecated Use 'math.sqrt' instead. It's a fastcall.
|
|
3852
3980
|
*/
|
|
3853
|
-
export function Sqrt(
|
|
3981
|
+
export function Sqrt(value: number): number
|
|
3854
3982
|
|
|
3855
3983
|
/**
|
|
3856
3984
|
* This function plays the specified animation from playing on the avatar who received the script's most recent permissions request.
|
|
3857
3985
|
* Animation may be an animation in task inventory or a built-in animation.
|
|
3858
3986
|
* Requires the PERMISSION_TRIGGER_ANIMATION runtime permission (automatically granted to attached or sat on objects).
|
|
3859
3987
|
*/
|
|
3860
|
-
export function StartAnimation(
|
|
3988
|
+
export function StartAnimation(animation: string): void
|
|
3861
3989
|
|
|
3862
3990
|
/**
|
|
3863
3991
|
* This function plays the specified animation on the rigged mesh object associated with the current script.
|
|
3864
3992
|
* Animation may be an animation in task inventory or a built-in animation.
|
|
3865
3993
|
*/
|
|
3866
|
-
export function StartObjectAnimation(
|
|
3994
|
+
export function StartObjectAnimation(animation: string): void
|
|
3867
3995
|
|
|
3868
3996
|
/**
|
|
3869
3997
|
* This function stops the specified animation on the avatar who received the script's most recent permissions request.
|
|
3870
3998
|
* Animation may be an animation in task inventory, a built-in animation, or the uuid of an animation.
|
|
3871
3999
|
* Requires the PERMISSION_TRIGGER_ANIMATION runtime permission (automatically granted to attached or sat on objects).
|
|
3872
4000
|
*/
|
|
3873
|
-
export function StopAnimation(
|
|
4001
|
+
export function StopAnimation(animation: string): void
|
|
3874
4002
|
|
|
3875
4003
|
/** Stop hovering to a height (due to llSetHoverHeight()). */
|
|
3876
4004
|
export function StopHover(): void
|
|
@@ -3885,18 +4013,25 @@ declare namespace ll {
|
|
|
3885
4013
|
* This function stops the specified animation on the rigged mesh object associated with the current script.
|
|
3886
4014
|
* Animation may be an animation in task inventory, a built-in animation, or the uuid of an animation.
|
|
3887
4015
|
*/
|
|
3888
|
-
export function StopObjectAnimation(
|
|
4016
|
+
export function StopObjectAnimation(animation: string): void
|
|
3889
4017
|
|
|
4018
|
+
/** @deprecated */
|
|
3890
4019
|
export function StopPointAt(): void
|
|
3891
4020
|
|
|
3892
4021
|
/** Stops playback of the currently attached sound. */
|
|
3893
4022
|
export function StopSound(): void
|
|
3894
4023
|
|
|
3895
|
-
/**
|
|
3896
|
-
|
|
4024
|
+
/**
|
|
4025
|
+
* Returns an integer that is the number of characters in Text (not counting the null).
|
|
4026
|
+
* @deprecated Use 'utf8.len' or '#' or 'string.len' instead.
|
|
4027
|
+
*/
|
|
4028
|
+
export function StringLength(text: string): number
|
|
3897
4029
|
|
|
3898
|
-
/**
|
|
3899
|
-
|
|
4030
|
+
/**
|
|
4031
|
+
* Returns the string Base64 representation of the input string.
|
|
4032
|
+
* @deprecated Use 'llbase64.encode' instead.
|
|
4033
|
+
*/
|
|
4034
|
+
export function StringToBase64(text: string): string
|
|
3900
4035
|
|
|
3901
4036
|
/**
|
|
3902
4037
|
* Outputs a string, eliminating white-space from the start and/or end of the input string Text.
|
|
@@ -3905,44 +4040,50 @@ declare namespace ll {
|
|
|
3905
4040
|
* STRING_TRIM_TAIL: trim all trailing spaces in Text
|
|
3906
4041
|
* STRING_TRIM: trim all leading and trailing spaces in Text.
|
|
3907
4042
|
*/
|
|
3908
|
-
export function StringTrim(
|
|
4043
|
+
export function StringTrim(text: string, trimType: number): string
|
|
3909
4044
|
|
|
3910
4045
|
/**
|
|
3911
4046
|
* Returns the first index where Sequence appears in Text. Returns -1 if not found.
|
|
3912
4047
|
* @indexReturn
|
|
3913
4048
|
*/
|
|
3914
|
-
export function SubStringIndex(
|
|
4049
|
+
export function SubStringIndex(text: string, sequence: string): number | undefined
|
|
3915
4050
|
|
|
3916
|
-
/**
|
|
3917
|
-
|
|
4051
|
+
/**
|
|
4052
|
+
* Deprecated: Use llSetCameraParams instead.
|
|
4053
|
+
* @deprecated Use 'll.SetCameraParams' instead.
|
|
4054
|
+
*/
|
|
4055
|
+
export function TakeCamera(avatarId: UUID): void
|
|
3918
4056
|
|
|
3919
4057
|
/**
|
|
3920
4058
|
* Take controls from the agent the script has permissions for.
|
|
3921
4059
|
* If (Accept == (Controls & input)), send input to the script. PassOn determines whether Controls also perform their normal functions.
|
|
3922
4060
|
* Requires the PERMISSION_TAKE_CONTROLS runtime permission (automatically granted to attached or sat on objects).
|
|
3923
4061
|
*/
|
|
3924
|
-
export function TakeControls(
|
|
4062
|
+
export function TakeControls(controls: number, accept: number, passOn: number): void
|
|
3925
4063
|
|
|
3926
|
-
/**
|
|
3927
|
-
|
|
4064
|
+
/**
|
|
4065
|
+
* Returns the tangent of Theta (Theta in radians).
|
|
4066
|
+
* @deprecated Use 'math.tan' instead. It's a fastcall.
|
|
4067
|
+
*/
|
|
4068
|
+
export function Tan(theta: number): number
|
|
3928
4069
|
|
|
3929
4070
|
/**
|
|
3930
4071
|
* This function is to have the script know when it has reached a position.
|
|
3931
4072
|
* It registers a Position with a Range that triggers at_target and not_at_target events continuously until unregistered.
|
|
3932
4073
|
*/
|
|
3933
|
-
export function Target(
|
|
4074
|
+
export function Target(position: Vector, range: number): number
|
|
3934
4075
|
|
|
3935
4076
|
/**
|
|
3936
4077
|
* Attempt to spin at SpinRate with strength Gain on Axis.
|
|
3937
4078
|
* A spin rate of 0.0 cancels the spin. This function always works in object-local coordinates.
|
|
3938
4079
|
*/
|
|
3939
|
-
export function TargetOmega(
|
|
4080
|
+
export function TargetOmega(axis: Vector, spinRate: number, gain: number): void
|
|
3940
4081
|
|
|
3941
4082
|
/** Removes positional target Handle registered with llTarget. */
|
|
3942
|
-
export function TargetRemove(
|
|
4083
|
+
export function TargetRemove(target: number): void
|
|
3943
4084
|
|
|
3944
4085
|
/** Sends an email with Subject and Message to the owner or creator of an object. */
|
|
3945
|
-
export function TargetedEmail(
|
|
4086
|
+
export function TargetedEmail(target: number, subject: string, text: string): void
|
|
3946
4087
|
|
|
3947
4088
|
/**
|
|
3948
4089
|
* Requests a teleport of avatar to a landmark stored in the object's inventory. If no landmark is provided (an empty string), the avatar is teleported to the location position in the current region. In either case, the avatar is turned to face the position given by look_at in local coordinates.
|
|
@@ -3950,10 +4091,10 @@ declare namespace ll {
|
|
|
3950
4091
|
* This function can only teleport the owner of the object.
|
|
3951
4092
|
*/
|
|
3952
4093
|
export function TeleportAgent(
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
4094
|
+
avatarId: UUID,
|
|
4095
|
+
landmarkName: string,
|
|
4096
|
+
position: Vector,
|
|
4097
|
+
lookAtPoint: Vector,
|
|
3957
4098
|
): void
|
|
3958
4099
|
|
|
3959
4100
|
/**
|
|
@@ -3962,80 +4103,80 @@ declare namespace ll {
|
|
|
3962
4103
|
* This function can only teleport the owner of the object.
|
|
3963
4104
|
*/
|
|
3964
4105
|
export function TeleportAgentGlobalCoords(
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
4106
|
+
avatarId: UUID,
|
|
4107
|
+
globalPosition: Vector,
|
|
4108
|
+
regionPosition: Vector,
|
|
4109
|
+
lookAtPoint: Vector,
|
|
3969
4110
|
): void
|
|
3970
4111
|
|
|
3971
4112
|
/** Teleport agent over the owner's land to agent's home location. */
|
|
3972
|
-
export function TeleportAgentHome(
|
|
4113
|
+
export function TeleportAgentHome(avatarId: UUID): void
|
|
3973
4114
|
|
|
3974
4115
|
/** Opens a dialog for the specified avatar with message Text, which contains a text box for input. Any text that is entered is said on the specified Channel (as if by the avatar) when the "OK" button is clicked. */
|
|
3975
|
-
export function TextBox(
|
|
4116
|
+
export function TextBox(avatarId: UUID, text: string, channel: number): void
|
|
3976
4117
|
|
|
3977
4118
|
/** Returns a string that is Text with all lower-case characters. */
|
|
3978
|
-
export function ToLower(
|
|
4119
|
+
export function ToLower(text: string): string
|
|
3979
4120
|
|
|
3980
4121
|
/** Returns a string that is Text with all upper-case characters. */
|
|
3981
|
-
export function ToUpper(
|
|
4122
|
+
export function ToUpper(text: string): string
|
|
3982
4123
|
|
|
3983
4124
|
/**
|
|
3984
4125
|
* Transfer Amount of linden dollars (L$) from script owner to AvatarID. Returns a key to a corresponding transaction_result event for the success of the transfer.
|
|
3985
4126
|
* Attempts to send the amount of money to the specified avatar, and trigger a transaction_result event identified by the returned key. Requires the PERMISSION_DEBIT runtime permission.
|
|
3986
4127
|
*/
|
|
3987
|
-
export function TransferLindenDollars(
|
|
4128
|
+
export function TransferLindenDollars(avatarId: UUID, amount: number): UUID
|
|
3988
4129
|
|
|
3989
4130
|
/** Transfers ownership of an object, or a copy of the object to a new agent. */
|
|
3990
|
-
export function TransferOwnership(
|
|
4131
|
+
export function TransferOwnership(agentId: UUID, flags: number, params: list): number
|
|
3991
4132
|
|
|
3992
4133
|
/**
|
|
3993
4134
|
* Plays Sound at Volume (0.0 - 1.0), centered at but not attached to object.
|
|
3994
4135
|
* There is no limit to the number of triggered sounds which can be generated by an object, and calling llTriggerSound does not affect the attached sounds created by llPlaySound and llLoopSound. This is very useful for things like collision noises, explosions, etc. There is no way to stop or alter the volume of a sound triggered by this function.
|
|
3995
4136
|
*/
|
|
3996
|
-
export function TriggerSound(
|
|
4137
|
+
export function TriggerSound(sound: string, volume: number): void
|
|
3997
4138
|
|
|
3998
4139
|
/**
|
|
3999
4140
|
* Plays Sound at Volume (0.0 - 1.0), centered at but not attached to object, limited to axis-aligned bounding box defined by vectors top-north-east (TNE) and bottom-south-west (BSW).
|
|
4000
4141
|
* There is no limit to the number of triggered sounds which can be generated by an object, and calling llTriggerSound does not affect the attached sounds created by llPlaySound and llLoopSound. This is very useful for things like collision noises, explosions, etc. There is no way to stop or alter the volume of a sound triggered by this function.
|
|
4001
4142
|
*/
|
|
4002
|
-
export function TriggerSoundLimited(
|
|
4143
|
+
export function TriggerSoundLimited(sound: string, volume: number, tne: Vector, bsw: Vector): void
|
|
4003
4144
|
|
|
4004
4145
|
/** If agent identified by AvatarID is sitting on the object the script is attached to or is over land owned by the object's owner, the agent is forced to stand up. */
|
|
4005
|
-
export function UnSit(
|
|
4146
|
+
export function UnSit(avatarId: UUID): void
|
|
4006
4147
|
|
|
4007
4148
|
/**
|
|
4008
4149
|
* Returns the string that is the URL unescaped, replacing "%20" with spaces, etc., version of URL.
|
|
4009
4150
|
* This function can output raw UTF-8 strings.
|
|
4010
4151
|
*/
|
|
4011
|
-
export function UnescapeURL(
|
|
4152
|
+
export function UnescapeURL(url: string): string
|
|
4012
4153
|
|
|
4013
4154
|
/** Updates settings for a pathfinding character. */
|
|
4014
|
-
export function UpdateCharacter(
|
|
4155
|
+
export function UpdateCharacter(options: list): void
|
|
4015
4156
|
|
|
4016
4157
|
/** Starts an asychronous transaction to update the value associated with the key given. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is a two element commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will be the value associated with the key. If Checked is 1 the existing value in the data store must match the OriginalValue passed or XP_ERROR_RETRY_UPDATE will be returned. If Checked is 0 the key will be created if necessary. */
|
|
4017
4158
|
export function UpdateKeyValue(
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
):
|
|
4159
|
+
key: string,
|
|
4160
|
+
value: string,
|
|
4161
|
+
checked: number,
|
|
4162
|
+
originalValue: string,
|
|
4163
|
+
): UUID
|
|
4023
4164
|
|
|
4024
4165
|
/** Returns the distance between Location1 and Location2. */
|
|
4025
|
-
export function VecDist(
|
|
4166
|
+
export function VecDist(location1: Vector, location2: Vector): number
|
|
4026
4167
|
|
|
4027
4168
|
/** Returns the magnitude of the vector. */
|
|
4028
|
-
export function VecMag(
|
|
4169
|
+
export function VecMag(vector: Vector): number
|
|
4029
4170
|
|
|
4030
4171
|
/** Returns normalized vector. */
|
|
4031
|
-
export function VecNorm(
|
|
4172
|
+
export function VecNorm(vector: Vector): Vector
|
|
4032
4173
|
|
|
4033
4174
|
/** Returns TRUE if PublicKey, Message, and Algorithm produce the same base64-formatted Signature. */
|
|
4034
4175
|
export function VerifyRSA(
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4176
|
+
publicKey: string,
|
|
4177
|
+
message: string,
|
|
4178
|
+
signature: string,
|
|
4179
|
+
algorithm: string,
|
|
4039
4180
|
): number
|
|
4040
4181
|
|
|
4041
4182
|
/**
|
|
@@ -4043,49 +4184,51 @@ declare namespace ll {
|
|
|
4043
4184
|
* If another object (including avatars) interpenetrates it, it will get a collision_start event.
|
|
4044
4185
|
* When an object stops interpenetrating, a collision_end event is generated. While the other is inter-penetrating, collision events are NOT generated.
|
|
4045
4186
|
*/
|
|
4046
|
-
export function VolumeDetect(
|
|
4187
|
+
export function VolumeDetect(detectEnabled: number): void
|
|
4047
4188
|
|
|
4048
4189
|
/**
|
|
4049
4190
|
* Wander within a specified volume.
|
|
4050
4191
|
* Sets a character to wander about a central spot within a specified area.
|
|
4051
4192
|
*/
|
|
4052
|
-
export function WanderWithin(
|
|
4193
|
+
export function WanderWithin(origin: Vector, area: Vector, options: list): void
|
|
4053
4194
|
|
|
4054
4195
|
/** Returns the water height below the object position + Offset. */
|
|
4055
|
-
export function Water(
|
|
4196
|
+
export function Water(offset: Vector): number
|
|
4056
4197
|
|
|
4057
4198
|
/**
|
|
4058
4199
|
* Whispers Text on Channel.
|
|
4059
4200
|
* This chat method has a range of 10m radius.
|
|
4060
4201
|
* PUBLIC_CHANNEL is the public chat channel that all avatars see as chat text. DEBUG_CHANNEL is the script debug channel, and is also visible to nearby avatars. All other channels are are not sent to avatars, but may be used to communicate with scripts.
|
|
4061
4202
|
*/
|
|
4062
|
-
export function Whisper(
|
|
4203
|
+
export function Whisper(channel: number, text: string): void
|
|
4063
4204
|
|
|
4064
4205
|
/** Returns the wind velocity at the object position + Offset. */
|
|
4065
|
-
export function Wind(
|
|
4206
|
+
export function Wind(offset: Vector): Vector
|
|
4066
4207
|
|
|
4067
4208
|
/** Returns the local position that would put the origin of a HUD object directly over world_pos as viewed by the current camera. Requires the PERMISSION_TRACK_CAMERA runtime permission (else will return zero vector). */
|
|
4068
|
-
export function WorldPosToHUD(
|
|
4209
|
+
export function WorldPosToHUD(worldPos: Vector): Vector
|
|
4069
4210
|
|
|
4070
4211
|
/** Performs an exclusive OR on two Base64 strings and returns a Base64 string. Text2 repeats if it is shorter than Text1. */
|
|
4071
|
-
export function XorBase64(
|
|
4212
|
+
export function XorBase64(text1: string, text2: string): string
|
|
4072
4213
|
|
|
4073
4214
|
/**
|
|
4074
4215
|
* Deprecated: Please use llXorBase64 instead.
|
|
4075
4216
|
* Incorrectly performs an exclusive OR on two Base64 strings and returns a Base64 string. Text2 repeats if it is shorter than Text1.
|
|
4076
4217
|
* Retained for backwards compatibility.
|
|
4218
|
+
* @deprecated Use 'll.XorBase64' instead.
|
|
4077
4219
|
*/
|
|
4078
|
-
export function XorBase64Strings(
|
|
4220
|
+
export function XorBase64Strings(text1: string, text2: string): string
|
|
4079
4221
|
|
|
4080
4222
|
/**
|
|
4081
4223
|
* Deprecated: Please use llXorBase64 instead.
|
|
4082
4224
|
* Correctly (unless nulls are present) performs an exclusive OR on two Base64 strings and returns a Base64 string.
|
|
4083
4225
|
* Text2 repeats if it is shorter than Text1.
|
|
4226
|
+
* @deprecated Use 'll.XorBase64' instead.
|
|
4084
4227
|
*/
|
|
4085
|
-
export function XorBase64StringsCorrect(
|
|
4228
|
+
export function XorBase64StringsCorrect(text1: string, text2: string): string
|
|
4086
4229
|
|
|
4087
4230
|
/** Converts a color from the sRGB to the linear colorspace. */
|
|
4088
|
-
export function sRGB2Linear(srgb:
|
|
4231
|
+
export function sRGB2Linear(srgb: Vector): Vector
|
|
4089
4232
|
}
|
|
4090
4233
|
|
|
4091
4234
|
/** Objects in world that are running a script or currently physically moving. */
|
|
@@ -4182,7 +4325,10 @@ declare const ATTACH_LHIP: number
|
|
|
4182
4325
|
declare const ATTACH_LLARM: number
|
|
4183
4326
|
/** Attach to the avatar's lower left leg. */
|
|
4184
4327
|
declare const ATTACH_LLLEG: number
|
|
4185
|
-
/**
|
|
4328
|
+
/**
|
|
4329
|
+
* Attach to the avatar's right pectoral. (Deprecated, use ATTACH_RIGHT_PEC)
|
|
4330
|
+
* @deprecated Use 'ATTACH_RIGHT_PEC' instead.
|
|
4331
|
+
*/
|
|
4186
4332
|
declare const ATTACH_LPEC: number
|
|
4187
4333
|
/** Attach to the avatar's left shoulder. */
|
|
4188
4334
|
declare const ATTACH_LSHOULDER: number
|
|
@@ -4218,7 +4364,10 @@ declare const ATTACH_RIGHT_PEC: number
|
|
|
4218
4364
|
declare const ATTACH_RLARM: number
|
|
4219
4365
|
/** Attach to the avatar's right lower leg. */
|
|
4220
4366
|
declare const ATTACH_RLLEG: number
|
|
4221
|
-
/**
|
|
4367
|
+
/**
|
|
4368
|
+
* Attach to the avatar's left pectoral. (deprecated, use ATTACH_LEFT_PEC)
|
|
4369
|
+
* @deprecated Use 'ATTACH_LEFT_PEC' instead.
|
|
4370
|
+
*/
|
|
4222
4371
|
declare const ATTACH_RPEC: number
|
|
4223
4372
|
/** Attach to the avatar's right shoulder. */
|
|
4224
4373
|
declare const ATTACH_RSHOULDER: number
|
|
@@ -4343,7 +4492,7 @@ declare const COMBAT_CHANNEL: number
|
|
|
4343
4492
|
* Messages from the region to the COMBAT_CHANNEL will all be from this ID.
|
|
4344
4493
|
* Scripts may filter llListen calls on this ID to receive only system generated combat log messages.
|
|
4345
4494
|
*/
|
|
4346
|
-
declare const COMBAT_LOG_ID:
|
|
4495
|
+
declare const COMBAT_LOG_ID: UUID
|
|
4347
4496
|
/** "application/atom+xml" */
|
|
4348
4497
|
declare const CONTENT_TYPE_ATOM: number
|
|
4349
4498
|
/** "application/x-www-form-urlencoded" */
|
|
@@ -4542,17 +4691,17 @@ declare const HTTP_PRAGMA_NO_CACHE: number
|
|
|
4542
4691
|
declare const HTTP_USER_AGENT: number
|
|
4543
4692
|
declare const HTTP_VERBOSE_THROTTLE: number
|
|
4544
4693
|
declare const HTTP_VERIFY_CERT: number
|
|
4545
|
-
declare const IMG_USE_BAKED_AUX1:
|
|
4546
|
-
declare const IMG_USE_BAKED_AUX2:
|
|
4547
|
-
declare const IMG_USE_BAKED_AUX3:
|
|
4548
|
-
declare const IMG_USE_BAKED_EYES:
|
|
4549
|
-
declare const IMG_USE_BAKED_HAIR:
|
|
4550
|
-
declare const IMG_USE_BAKED_HEAD:
|
|
4551
|
-
declare const IMG_USE_BAKED_LEFTARM:
|
|
4552
|
-
declare const IMG_USE_BAKED_LEFTLEG:
|
|
4553
|
-
declare const IMG_USE_BAKED_LOWER:
|
|
4554
|
-
declare const IMG_USE_BAKED_SKIRT:
|
|
4555
|
-
declare const IMG_USE_BAKED_UPPER:
|
|
4694
|
+
declare const IMG_USE_BAKED_AUX1: UUID
|
|
4695
|
+
declare const IMG_USE_BAKED_AUX2: UUID
|
|
4696
|
+
declare const IMG_USE_BAKED_AUX3: UUID
|
|
4697
|
+
declare const IMG_USE_BAKED_EYES: UUID
|
|
4698
|
+
declare const IMG_USE_BAKED_HAIR: UUID
|
|
4699
|
+
declare const IMG_USE_BAKED_HEAD: UUID
|
|
4700
|
+
declare const IMG_USE_BAKED_LEFTARM: UUID
|
|
4701
|
+
declare const IMG_USE_BAKED_LEFTLEG: UUID
|
|
4702
|
+
declare const IMG_USE_BAKED_LOWER: UUID
|
|
4703
|
+
declare const IMG_USE_BAKED_SKIRT: UUID
|
|
4704
|
+
declare const IMG_USE_BAKED_UPPER: UUID
|
|
4556
4705
|
declare const INVENTORY_ALL: number
|
|
4557
4706
|
declare const INVENTORY_ANIMATION: number
|
|
4558
4707
|
declare const INVENTORY_BODYPART: number
|
|
@@ -4685,7 +4834,7 @@ declare const MASK_OWNER: number
|
|
|
4685
4834
|
/** Indicates a notecard read was attempted and the notecard was not yet cached on the server. */
|
|
4686
4835
|
declare const NAK: string
|
|
4687
4836
|
declare const NAVIGATE_TO_GOAL_REACHED_DIST: number
|
|
4688
|
-
declare const NULL_KEY:
|
|
4837
|
+
declare const NULL_KEY: UUID
|
|
4689
4838
|
/**
|
|
4690
4839
|
* Retrieves the account level of an avatar.
|
|
4691
4840
|
* Returns 0 when the avatar has a basic account,
|
|
@@ -5038,6 +5187,7 @@ declare const PRIM_BUMP_SUCTION: number
|
|
|
5038
5187
|
declare const PRIM_BUMP_TILE: number
|
|
5039
5188
|
declare const PRIM_BUMP_WEAVE: number
|
|
5040
5189
|
declare const PRIM_BUMP_WOOD: number
|
|
5190
|
+
/** @deprecated Not implemented. */
|
|
5041
5191
|
declare const PRIM_CAST_SHADOWS: number
|
|
5042
5192
|
/** [PRIM_CLICK_ACTION, integer CLICK_ACTION_*] */
|
|
5043
5193
|
declare const PRIM_CLICK_ACTION: number
|
|
@@ -5378,8 +5528,11 @@ declare const REGION_FLAG_DISABLE_PHYSICS: number
|
|
|
5378
5528
|
declare const REGION_FLAG_FIXED_SUN: number
|
|
5379
5529
|
declare const REGION_FLAG_RESTRICT_PUSHOBJECT: number
|
|
5380
5530
|
declare const REGION_FLAG_SANDBOX: number
|
|
5531
|
+
/** @deprecated */
|
|
5381
5532
|
declare const REMOTE_DATA_CHANNEL: number
|
|
5533
|
+
/** @deprecated */
|
|
5382
5534
|
declare const REMOTE_DATA_REPLY: number
|
|
5535
|
+
/** @deprecated */
|
|
5383
5536
|
declare const REMOTE_DATA_REQUEST: number
|
|
5384
5537
|
/** Define whether the character needs a line-of-sight to give chase. */
|
|
5385
5538
|
declare const REQUIRE_LINE_OF_SIGHT: number
|
|
@@ -5652,14 +5805,14 @@ declare const TERRAIN_PBR_SCALE_1: number
|
|
|
5652
5805
|
declare const TERRAIN_PBR_SCALE_2: number
|
|
5653
5806
|
declare const TERRAIN_PBR_SCALE_3: number
|
|
5654
5807
|
declare const TERRAIN_PBR_SCALE_4: number
|
|
5655
|
-
declare const TEXTURE_BLANK:
|
|
5656
|
-
declare const TEXTURE_DEFAULT:
|
|
5657
|
-
declare const TEXTURE_MEDIA:
|
|
5658
|
-
declare const TEXTURE_PLYWOOD:
|
|
5659
|
-
declare const TEXTURE_TRANSPARENT:
|
|
5808
|
+
declare const TEXTURE_BLANK: UUID
|
|
5809
|
+
declare const TEXTURE_DEFAULT: UUID
|
|
5810
|
+
declare const TEXTURE_MEDIA: UUID
|
|
5811
|
+
declare const TEXTURE_PLYWOOD: UUID
|
|
5812
|
+
declare const TEXTURE_TRANSPARENT: UUID
|
|
5660
5813
|
declare const TOUCH_INVALID_FACE: number
|
|
5661
|
-
declare const TOUCH_INVALID_TEXCOORD:
|
|
5662
|
-
declare const TOUCH_INVALID_VECTOR:
|
|
5814
|
+
declare const TOUCH_INVALID_TEXCOORD: Vector
|
|
5815
|
+
declare const TOUCH_INVALID_VECTOR: Vector
|
|
5663
5816
|
/** Direct teleporting is blocked on this parcel. */
|
|
5664
5817
|
declare const TP_ROUTING_BLOCKED: number
|
|
5665
5818
|
/** Teleports are unrestricted on this parcel. */
|
|
@@ -5699,19 +5852,40 @@ declare const TRAVERSAL_TYPE_NONE: number
|
|
|
5699
5852
|
declare const TRAVERSAL_TYPE_SLOW: number
|
|
5700
5853
|
/** 6.28318530 - The radians of a circle. */
|
|
5701
5854
|
declare const TWO_PI: number
|
|
5702
|
-
/**
|
|
5855
|
+
/**
|
|
5856
|
+
* The list entry is a float.
|
|
5857
|
+
* @deprecated Use '"number"' instead.
|
|
5858
|
+
*/
|
|
5703
5859
|
declare const TYPE_FLOAT: number
|
|
5704
|
-
/**
|
|
5860
|
+
/**
|
|
5861
|
+
* The list entry is an integer.
|
|
5862
|
+
* @deprecated Use '"number"' instead.
|
|
5863
|
+
*/
|
|
5705
5864
|
declare const TYPE_INTEGER: number
|
|
5706
|
-
/**
|
|
5865
|
+
/**
|
|
5866
|
+
* The list entry is invalid.
|
|
5867
|
+
* @deprecated Use 'nil' instead.
|
|
5868
|
+
*/
|
|
5707
5869
|
declare const TYPE_INVALID: number
|
|
5708
|
-
/**
|
|
5870
|
+
/**
|
|
5871
|
+
* The list entry is a key.
|
|
5872
|
+
* @deprecated Use '"uuid"' instead.
|
|
5873
|
+
*/
|
|
5709
5874
|
declare const TYPE_KEY: number
|
|
5710
|
-
/**
|
|
5875
|
+
/**
|
|
5876
|
+
* The list entry is a rotation.
|
|
5877
|
+
* @deprecated Use '"quaternion"' instead.
|
|
5878
|
+
*/
|
|
5711
5879
|
declare const TYPE_ROTATION: number
|
|
5712
|
-
/**
|
|
5880
|
+
/**
|
|
5881
|
+
* The list entry is a string.
|
|
5882
|
+
* @deprecated Use '"string"' instead.
|
|
5883
|
+
*/
|
|
5713
5884
|
declare const TYPE_STRING: number
|
|
5714
|
-
/**
|
|
5885
|
+
/**
|
|
5886
|
+
* The list entry is a vector.
|
|
5887
|
+
* @deprecated Use '"vector"' instead.
|
|
5888
|
+
*/
|
|
5715
5889
|
declare const TYPE_VECTOR: number
|
|
5716
5890
|
declare const URL_REQUEST_DENIED: string
|
|
5717
5891
|
declare const URL_REQUEST_GRANTED: string
|
|
@@ -5754,7 +5928,10 @@ declare const VEHICLE_FLAG_MOUSELOOK_BANK: number
|
|
|
5754
5928
|
declare const VEHICLE_FLAG_MOUSELOOK_STEER: number
|
|
5755
5929
|
/** This flag prevents linear deflection parallel to world z-axis. This is useful for preventing ground vehicles with large linear deflection, like bumper cars, from climbing their linear deflection into the sky. */
|
|
5756
5930
|
declare const VEHICLE_FLAG_NO_DEFLECTION_UP: number
|
|
5757
|
-
/**
|
|
5931
|
+
/**
|
|
5932
|
+
* Old, changed to VEHICLE_FLAG_NO_DEFLECTION_UP
|
|
5933
|
+
* @deprecated Use 'VEHICLE_FLAG_NO_DEFLECTION_UP' instead.
|
|
5934
|
+
*/
|
|
5758
5935
|
declare const VEHICLE_FLAG_NO_FLY_UP: number
|
|
5759
5936
|
/** A slider between minimum (0.0 = bouncy) and maximum (1.0 = fast as possible) damped motion of the hover behavior. */
|
|
5760
5937
|
declare const VEHICLE_HOVER_EFFICIENCY: number
|
|
@@ -5863,5 +6040,5 @@ declare const XP_ERROR_STORE_DISABLED: number
|
|
|
5863
6040
|
declare const XP_ERROR_THROTTLED: number
|
|
5864
6041
|
/** Other unknown error. */
|
|
5865
6042
|
declare const XP_ERROR_UNKNOWN_ERROR: number
|
|
5866
|
-
declare const ZERO_ROTATION:
|
|
5867
|
-
declare const ZERO_VECTOR:
|
|
6043
|
+
declare const ZERO_ROTATION: Quaternion
|
|
6044
|
+
declare const ZERO_VECTOR: Vector
|