Zalinian
New Member
- Reaction score
- 0
As the title says, I want to have a member of a struct point to function.
EX:
Then somehow set myStruct.Func = myFunc, so I can call myStruct.Func() over myFunc().
Basically I need to attach certain functions to my heros (as unit-types). I already have the system for attaching structs of data to unit-types, and I can add triggers into the struct attached to the unit-types, but I can't find a way to attach a simple function.
EX:
JASS:
Then somehow set myStruct.Func = myFunc, so I can call myStruct.Func() over myFunc().
Basically I need to attach certain functions to my heros (as unit-types). I already have the system for attaching structs of data to unit-types, and I can add triggers into the struct attached to the unit-types, but I can't find a way to attach a simple function.