THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/12/2009 at 15:53, xxxxxxxx wrote:
I have another question. currently, with this plugin object, the user has to press the CREATE PLANET button for the CreatePlanet() to be called. I am trying to get CreatePlanet() to be called from init() to skip this button step.
currently I am able to get the init() to call Create Planet with,
BaseObject* op = static_cast<BaseTag*>(node)->GetObject();
CreatePlanet(op,node);
however, when it gets in to CreatePlanet() is returns false because I have the following code
if (!op)
return FALSE;
I must be passing op incorrectly to CreatePlanet but I am not sure what I am doign wrong. Does anyone know how I would do this correctly?
Thanks,
~Shawn