DestroyPlaceHolders
Appearance
| 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 |
| argTable | Table 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: | ||