string as function name (ent_create)

Posted By: Rich

string as function name (ent_create) - 08/30/10 16:24

Just wanted to see if something like this was possible, I've been testing it with no success. I'm thinking I'm doing it wrong, but maybe it's not possible:

Code:
ent_create(my.string1,my.x,my.string2 );



Note : my.string1, my.string2 are the entity strings, set in WED.

I'm trying to use a string as function parameter of ent_create.

I've tried typecasting but I'm not even sure which type or the proper syntax. (EVENT*)my.string2

Thanks for any help! laugh
Posted By: TrackingKeks

Re: string as function name (ent_create) - 08/30/10 16:55

Code:
ent_create(my.string1,my.x,engine_getscript(my.string2) );



This should work
Posted By: Rich

Re: string as function name (ent_create) - 08/30/10 17:50

Works great, Thank you very much! laugh
© 2024 lite-C Forums