DeleteMapObject
Takes a map object off the level for everyone.
Syntax
Section titled “Syntax”DeleteMapObject(id)| Parameter | Type | |
|---|---|---|
id |
number | the object |
Returns
Section titled “Returns”boolean - true; false and the reason when there is no such object
Example
Section titled “Example”for _, o in ipairs(GetMapObjectsNear(x, y, z, 10)) do if o.group == "barricade" then DeleteMapObject(o.id) endendSee also
Section titled “See also”CreateMapObject · GetMapObjectsNear · the The server’s map group of the index
