Getting a pointer to an array of vectors in plugin dll

Posted By: Matt_Aufderheide

Getting a pointer to an array of vectors in plugin dll - 07/31/20 22:33

Having troiuble figuring out how to get a pointer to an array of VECTORs ... i can a single vector using doign this:
static VECTOR *myvec = (VECTOR*)engine_getvar((char*)"myvec", NULL);

but this doesnt work for an array of vectors such as youd define in lite-c as VECTOR myvec[64]
Posted By: Superku

Re: Getting a pointer to an array of vectors in plugin dll - 08/02/20 09:36

I only use engine_getscript so I don't have experience with engine_getvar. How so does it fail for the array, does it return NULL?
What if you put your array into a dummy container struct and search for that one instead, could that be a workaround for you?
© 2024 lite-C Forums