mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Changed function name to fit standards.
This commit is contained in:
parent
50edf31992
commit
e82b7b96b5
|
|
@ -87,7 +87,7 @@ function DemoPlayer::onEndSequence(%this,%obj,%slot)
|
|||
// AIPlayer static functions
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function AIPlayer::create(%name,%spawnPoint)
|
||||
function AIPlayer::produce(%name,%spawnPoint)
|
||||
{
|
||||
// Create the demo player object
|
||||
%player = new AiPlayer()
|
||||
|
|
@ -107,7 +107,7 @@ function AIPlayer::spawnOnPath(%name,%path)
|
|||
if (!isObject(%path))
|
||||
return 0;
|
||||
%node = %path.getObject(0);
|
||||
%player = AIPlayer::create(%name, %node.getTransform());
|
||||
%player = AIPlayer::produce(%name, %node.getTransform());
|
||||
return %player;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ function DemoPlayer::onEndSequence(%this,%obj,%slot)
|
|||
// AIPlayer static functions
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function AIPlayer::create(%name,%spawnPoint)
|
||||
function AIPlayer::produce(%name,%spawnPoint)
|
||||
{
|
||||
// Create the demo player object
|
||||
%player = new AiPlayer()
|
||||
|
|
@ -107,7 +107,7 @@ function AIPlayer::spawnOnPath(%name,%path)
|
|||
if (!isObject(%path))
|
||||
return 0;
|
||||
%node = %path.getObject(0);
|
||||
%player = AIPlayer::create(%name, %node.getTransform());
|
||||
%player = AIPlayer::produce(%name, %node.getTransform());
|
||||
return %player;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue