<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MapEditor_helpers</id>
	<title>MapEditor helpers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MapEditor_helpers"/>
	<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=MapEditor_helpers&amp;action=history"/>
	<updated>2026-09-30T00:17:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=MapEditor_helpers&amp;diff=977&amp;oldid=prev</id>
		<title>QCherry: Release 0.1.4 BUILD133 / Protocol 36 and document authenticated event origin</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=MapEditor_helpers&amp;diff=977&amp;oldid=prev"/>
		<updated>2026-09-21T20:40:43Z</updated>

		<summary type="html">&lt;p&gt;Release 0.1.4 BUILD133 / Protocol 36 and document authenticated event origin&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:40, 21 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= MapEditor helpers =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= MapEditor helpers =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Since 0.1.4 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(in development)&lt;/del&gt;. Client Lua helpers inside the map_editor resource only, not engine globals available to every resource.&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Since 0.1.4. Client Lua helpers inside the map_editor resource only, not engine globals available to every resource.&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Defined in &amp;lt;code&amp;gt;map_editor/client/scene.lua&amp;lt;/code&amp;gt;. Use while the editor is active and ready. Generic gamemode scripts should use [[WorldObjects.request]] instead. These helpers update the editor document/history only after native acknowledgement.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Defined in &amp;lt;code&amp;gt;map_editor/client/scene.lua&amp;lt;/code&amp;gt;. Use while the editor is active and ready. Generic gamemode scripts should use [[WorldObjects.request]] instead. These helpers update the editor document/history only after native acknowledgement.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=MapEditor_helpers&amp;diff=925&amp;oldid=prev</id>
		<title>QCherry: Document Map Editor, saved maps, static scene deployment and Lua APIs since 0.1.4</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=MapEditor_helpers&amp;diff=925&amp;oldid=prev"/>
		<updated>2026-09-20T18:19:27Z</updated>

		<summary type="html">&lt;p&gt;Document Map Editor, saved maps, static scene deployment and Lua APIs since 0.1.4&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= MapEditor helpers =&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Since 0.1.4 (in development). Client Lua helpers inside the map_editor resource only, not engine globals available to every resource.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Defined in &amp;lt;code&amp;gt;map_editor/client/scene.lua&amp;lt;/code&amp;gt;. Use while the editor is active and ready. Generic gamemode scripts should use [[WorldObjects.request]] instead. These helpers update the editor document/history only after native acknowledgement.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Helper !! Contract&lt;br /&gt;
|-&lt;br /&gt;
| [[MapEditor.CreateObject]]&amp;lt;code&amp;gt;(meshPath, transform)&amp;lt;/code&amp;gt; || Returns a reserved string ID or false if rejected locally. The ID is &amp;#039;&amp;#039;&amp;#039;not confirmation&amp;#039;&amp;#039;&amp;#039; that native creation succeeded. Defaults: position/rotation zero, scale 1, visible, unlocked, collision enabled. Optional table overrides defined object fields; preserve generated IDs and valid schema. Mesh must be in the editor catalog.&lt;br /&gt;
|-&lt;br /&gt;
| [[MapEditor.DeleteObject]]&amp;lt;code&amp;gt;(id)&amp;lt;/code&amp;gt; || Returns request acceptance as boolean. Unknown/locked instances, busy/loading or uncertain native state reject. No other resource or original world actor can be deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[MapEditor.SetTransform]]&amp;lt;code&amp;gt;(id, transform)&amp;lt;/code&amp;gt; || Boolean request acceptance. Partial table of x/y/z, pitch/yaw/roll, sx/sy/sz; omitted fields retain the current document values. Unlike the native update command, this helper fills the complete state. Unknown or locked instances reject.&lt;br /&gt;
|-&lt;br /&gt;
| [[MapEditor.GetObjects]]&amp;lt;code&amp;gt;()&amp;lt;/code&amp;gt; || Deep-copy table keyed by object ID of current editor document records. Not a live engine query. Changing the returned copy does not change the scene; failed-to-render records retained after load can also appear here.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Positions use metres, rotations degrees, scale is a multiplier. Creation/deletion/transform functions are asynchronous; do not chain dependent operations on a newly reserved ID before native completion. Editor UI status and its serialized operation flow report results. The helpers have no independent exported callback parameter.&lt;br /&gt;
&lt;br /&gt;
There are no separate engine MapEditor.SetPosition/SetRotation/SetScale/CloneObject functions. Use SetTransform within the editor, its Duplicate action for GUI duplication, or explicit WorldObjects commands with your own document state in another resource. See [[Map editor]] for controls, save/load and limitations.&lt;br /&gt;
[[Category:Lua API]]&lt;br /&gt;
[[Category:Lua Examples]]&lt;/div&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
</feed>