Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Specifies the code to run when the user performs a Quick Add object in the editor. Set to empty for default behavior.

Note: For V18.3.0+, the Quick Add functionality is not part of the editor UI. Therefore, this command is no longer functional.

Syntax

Syntax:map onQuickAddObject [command, index]
Parameters:
  • map: Control - Affected map.
  • command: String - Code to run. The following variables are available in the command section, through the _this parameter:
    • _pos: Position3D - Map position, where the object is added.
    • _class: String - Currently selected object class.
  • index: Number -
Return Value:Anything

Examples

Examples:

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes