Hi Jabantiz,
you could simply put the pointer-value of the struct into an entity-skill!
It's made like this:
MYSTRUCT entStruct =
{
whatever;
whatever;
}
myEntity.skill99 = &entStruct.
Though personally (if you have more than one entity which needs a specific struct) I would simply put an entity definition into the struct.
typedef struct
{
whatever;
whatever;
ENTITY* myEntity;
} ENTWITHSTRUCT;
greetings
KDuke
EDIT: I forgot to mention that you access the struct then the following way:
MYSTRUCT* tempStruct = (MYSTRUCT*)myEntity.skill99;
tempStruct->structMember = whatever;