Name
| Name | ||
|---|---|---|
| Build required | N/A | |
| Version required | 0.1.0 | |
The name command assigns a unique text identifier to an object, allowing it to be targeted and manipulated remotely by commands on other objects.
Usage
name identifier
Arguments
- Identifier
- The text string assigned as the object's name.
Values: Alphanumeric characters and underscores (e.g.,door_1,light)
Default: None
Examples
create name main_gate
Assigns the identifier main_gate to the current object when loaded into the world.
activate move 0 5 0 name=main_gate
When activated (clicked), moves the object named main_gate up 5 meters, rather than moving the object containing the script.
create name street_lamp
Multiple objects can share the same name identifier. Commands referencing name=street_lamp will target and affect all objects sharing that name simultaneously.
activate color red name=light_1
Changes the color of the target object light_1 to red from a remote switch or button.
|
|
|
|
Triggers: |
|
|
Commands: |
Animate • Animation • Ambient • Camera • Color • Diffuse • Frame • Framerate • Group • Light • Move • Name • Noise • Normalmap • Opacity • Path • Picture • Rotate • Say • Shear • Scale • Sign • Solid • Sound • Specular • Specularmap • Teleport • Teleportx • Teleportxyz • Texture • Url • Visible • Web |