mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Changed function name to fit standards.
This commit is contained in:
parent
50edf31992
commit
e82b7b96b5
2 changed files with 4 additions and 4 deletions
|
|
@ -87,7 +87,7 @@ function DemoPlayer::onEndSequence(%this,%obj,%slot)
|
||||||
// AIPlayer static functions
|
// AIPlayer static functions
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
function AIPlayer::create(%name,%spawnPoint)
|
function AIPlayer::produce(%name,%spawnPoint)
|
||||||
{
|
{
|
||||||
// Create the demo player object
|
// Create the demo player object
|
||||||
%player = new AiPlayer()
|
%player = new AiPlayer()
|
||||||
|
|
@ -107,7 +107,7 @@ function AIPlayer::spawnOnPath(%name,%path)
|
||||||
if (!isObject(%path))
|
if (!isObject(%path))
|
||||||
return 0;
|
return 0;
|
||||||
%node = %path.getObject(0);
|
%node = %path.getObject(0);
|
||||||
%player = AIPlayer::create(%name, %node.getTransform());
|
%player = AIPlayer::produce(%name, %node.getTransform());
|
||||||
return %player;
|
return %player;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ function DemoPlayer::onEndSequence(%this,%obj,%slot)
|
||||||
// AIPlayer static functions
|
// AIPlayer static functions
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
function AIPlayer::create(%name,%spawnPoint)
|
function AIPlayer::produce(%name,%spawnPoint)
|
||||||
{
|
{
|
||||||
// Create the demo player object
|
// Create the demo player object
|
||||||
%player = new AiPlayer()
|
%player = new AiPlayer()
|
||||||
|
|
@ -107,7 +107,7 @@ function AIPlayer::spawnOnPath(%name,%path)
|
||||||
if (!isObject(%path))
|
if (!isObject(%path))
|
||||||
return 0;
|
return 0;
|
||||||
%node = %path.getObject(0);
|
%node = %path.getObject(0);
|
||||||
%player = AIPlayer::create(%name, %node.getTransform());
|
%player = AIPlayer::produce(%name, %node.getTransform());
|
||||||
return %player;
|
return %player;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue