Jump to content

DestroyPlaceHolders

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DestroyPlaceHolders – created via PowerShell script (2025-11-11T21:12:45Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DestroyPlaceHolders
Function Description: Destroys placeholder objects by name from a provided table of entity names, iterating through each entry and removing the static object if it exists.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.DestroyPlaceHolders( table argTable )
Return Value: nil
Parameters: Name Description
argTableTable containing a list of entity names as strings, each representing a placeholder object to be deleted.
Example: CMM.DestroyPlaceHolders({"Zone1_Placeholder--PLACEHOLDER--", "Hangar_Placeholder"})
Example Description: Deletes placeholder objects named Zone1_Placeholder--PLACEHOLDER-- and Hangar_Placeholder using the StaticObject.getByName and Object.destroy functions.
Related Functions:
Notes: