Jump to content

DestroyPlaceHolders

From CMM Wiki
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: