Add World Map Marker(Position, Id, Image, Background color, Visible by default)
static addWorldMarker(position: YVector3, id: string, image: YCustomImage | YImage, backgroundColor: YColor, visibleByDefault: boolean): YMapMarker;
Parameters
position
Target position of the map marker in world coordinates.
id
Unique ID of the map marker.
image
Foreground image of the map marker.
backgroundColor
Color of the background image of the map marker.
visibleByDefault
Sets whether the map marker is automatically displayed to every player.
Returns
YMapMarker
Availability
Server
Description
Creates a new unbound map marker object placed on target world coordinates.
Ylands - Editor
|
Editor
|
Animated objects,
Custom UI,
Entity welding,
Game export,
Game ID,
Monetization,
MIDI music,
Optimizations,
Common Problems,
FAQ
|
Script
|
Introduction,
Conventions,
Client script,
Text scripting,
Custom controls,
Custom controller,
Storage Data,
Game set,
Leaderboards,
Matchmaking,
Map markers
|
Game logic
|
AI Behaviour,
Ask Player,
Controller,
Custom Camera,
Custom Controls,
Custom HUD,
Custom Window,
Data Set,
Dialogue,
Entity Label,
Entity Storage,
Entity Template,
Environment,
Event Listener,
Game Logic Label,
Game Logic Storage,
Game Logic Template,
Global Storage,
Group Template,
Image Library,
Impassable Barrier,
Light,
Melee Attack Effect,
Particle Effect,
Particle Template,
Path,
Play Area,
Player Role,
Player Team,
Position Animator,
Post Process,
Reference Point,
Resource,
Rotation Animator,
Script Module,
Skill,
Sound Effect,
Spawn Point,
Time Trigger,
Transaction,
Trigger Zone,
Voice Chat Channel,
Water Volume
|
Script tiles
|
Game,
Entities,
Game Logic,
Logic,
Loops,
Instructions,
Number,
Vector,
Color,
String,
Array
|
Misc
|
WIKI FAQ
|