GetNewEffectID
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | GetNewEffectID | |
| Function Description: | Generates and returns a unique effect ID by incrementing a persistent counter, ensuring no duplicate IDs are assigned across effect creations. | |
| File Location: | cmm.spawnFunctions.lua | |
| Syntax: | CMM.GetNewEffectID( ) | |
| Return Value: | number | |
| Parameters: | Name | Description |
| Example: | local newID = CMM.GetNewEffectID() | |
| Example Description: | Retrieves a new unique effect ID for use in effect management, initializing the counter if not already set. | |
| Related Functions: | ||
| Notes: | ||