PasteObjects: Difference between revisions

From VisionaireWiki
Jump to navigation Jump to search
(New page: ==pasteObjects== Lua Syntax: <pre>pasteObjects(windowName [, parentObject, field])</pre> ===Arguments=== ====windowName==== :'''int''' - Name of the new toolbox. ====parentObject==== :''...)
 
m (Bot (Edward's framework))
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:


Lua Syntax:
Lua Syntax:
<pre>pasteObjects(windowName [, parentObject, field])</pre>
<pre>pasteObjects(windowName [, parentObject, field], {flags=1,
    flush = true|false})</pre>
===Arguments===
===Arguments===
====windowName====
====windowName====
Line 12: Line 13:
:'''int''' - Data field where the pasted object(s) will be added to the parent object.
:'''int''' - Data field where the pasted object(s) will be added to the parent object.
===Flags===
===Flags===
====fl/flush====
:If true then the pending notifications will be flushed immediately. By default notifications of commands inside a command group will be sent after the group is closed.
===Return Values===
===Return Values===
None.
;objects
:List of newly created pasted objects.

Latest revision as of 11:57, 16 August 2009

pasteObjects

Lua Syntax:

pasteObjects(windowName [, parentObject, field], {flags=1, 
    flush = true|false})

Arguments

windowName

int - Name of the new toolbox.

parentObject

"object path"|"object id"|object - Object where the pasted object(s) will be added to.If no parent object is given the object(s) will be added to the game object.

field

int - Data field where the pasted object(s) will be added to the parent object.

Flags

fl/flush

If true then the pending notifications will be flushed immediately. By default notifications of commands inside a command group will be sent after the group is closed.

Return Values

objects
List of newly created pasted objects.