Script question
by Memory · in Technical Issues · 05/30/2009 (9:05 am) · 0 replies
Hi there,
I don't know if this is the right place to ask, oh well here goes (I am only testing the trial). I basically want to call a function in script and have everything that is a certain class do that action. Like this, even though I know this doesn't work (that's the problem).
function t2dSceneGraph::onUpdateScene( %this )
{
if($timer == 0)
{
echo(" Time is up!");
%this.enemyShip.spawn(); <-- this is where i want to call it. Have the enemy ship run a function!
}
}
I am scripting for TGB.
Thanks
-M
I don't know if this is the right place to ask, oh well here goes (I am only testing the trial). I basically want to call a function in script and have everything that is a certain class do that action. Like this, even though I know this doesn't work (that's the problem).
function t2dSceneGraph::onUpdateScene( %this )
{
if($timer == 0)
{
echo(" Time is up!");
%this.enemyShip.spawn(); <-- this is where i want to call it. Have the enemy ship run a function!
}
}
I am scripting for TGB.
Thanks
-M