I would like to be able to store a function in the skill of my entity. For example you may have a function called rotate which you store as skill99 then call rotate using skill99.
Basically I would like to do the following
my.skill99 = myFunctionCalledRotate;
Then within the action for the entity do
function myFunction(); myFunction = my.skill99; myFunction();
I hope what I am trying to do makes sense. I will try to explain this better if need be.
Re: Store function pointer in skill
[Re: RicheyMB2]
#190061 03/24/0804:4803/24/0804:48
It defines a function pointer named "func" with the return value void and the parameter void. If you e.g. call a function which returns an int, it would be