Cohadar
master of fugue
- Reaction score
- 209
Ok for this you need to use function interfacesMostly I'm interested in passing a function parameter to another function, and a dynamic type struct to any function. Can I just use the "code" handle to pass a function_name arguement, and once I'm in the appropriate function which I have passed the function I want to pass to, how would I call it?
read jasshelper documentation for that.
A few more questions: For leak removal, do structs attached to units through their custom value get auto removed when the unit is removed? I assume so because the custom value is just an integer value on the unit.
I assume we are talking about PUI usage here,
the answer to your question in NO.
You have to destroy structs manually.
If you use PUI unit attaching don't remove units but call Struct.destroy()
and in onDestroy method put RemoveUnit() stuff.
For any other questions related to ABC or PUI please post in here.