I'm having a hard time wording this question to make it clear, so I'll give out an example to hopefully help. I've created a record to store all items that are dropped by units when they die. I can fill the data in this record easily by just making a trigger that fires upon any unit's death.
The thing I haven't been able to figure out so far, is how I fill the record with the data of items that are preloaded in the scene as well. Is there a way to search through all of the items/units that are currently placed in the scene? Or am I doomed to have to manually fill the record data every time I want to have an item in the scene, with out having it dropped by an enemy.
I haven't bessed with the items yet, but I'm gonna guess they constitute units... there's a For each unit in unit group, and you can choose, all units on the map. if they are applicable items, stick em in the array.
I also believe you can simply initialize the array with them in it forcibly through the editor.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm having a hard time wording this question to make it clear, so I'll give out an example to hopefully help. I've created a record to store all items that are dropped by units when they die. I can fill the data in this record easily by just making a trigger that fires upon any unit's death.
The thing I haven't been able to figure out so far, is how I fill the record with the data of items that are preloaded in the scene as well. Is there a way to search through all of the items/units that are currently placed in the scene? Or am I doomed to have to manually fill the record data every time I want to have an item in the scene, with out having it dropped by an enemy.
Any help on this would be greatly appreciated!
-Orothin
I haven't bessed with the items yet, but I'm gonna guess they constitute units... there's a For each unit in unit group, and you can choose, all units on the map. if they are applicable items, stick em in the array. I also believe you can simply initialize the array with them in it forcibly through the editor.