mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 00:05:40 +00:00
Merge branch 'ai-renameproducefunction' of https://github.com/thecelloman/Torque3D into thecelloman-ai-renameproducefunction
This commit is contained in:
commit
bc2e241caa
2 changed files with 6 additions and 6 deletions
|
|
@ -87,7 +87,7 @@ function DemoPlayer::onEndSequence(%this,%obj,%slot)
|
||||||
// AIPlayer static functions
|
// AIPlayer static functions
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
function AIPlayer::produce(%name,%spawnPoint)
|
function AIPlayer::spawnAtLocation(%name, %spawnPoint)
|
||||||
{
|
{
|
||||||
// Create the demo player object
|
// Create the demo player object
|
||||||
%player = new AiPlayer()
|
%player = new AiPlayer()
|
||||||
|
|
@ -101,13 +101,13 @@ function AIPlayer::produce(%name,%spawnPoint)
|
||||||
return %player;
|
return %player;
|
||||||
}
|
}
|
||||||
|
|
||||||
function AIPlayer::spawnOnPath(%name,%path)
|
function AIPlayer::spawnOnPath(%name, %path)
|
||||||
{
|
{
|
||||||
// Spawn a player and place him on the first node of the path
|
// Spawn a player and place him on the first node of the path
|
||||||
if (!isObject(%path))
|
if (!isObject(%path))
|
||||||
return 0;
|
return 0;
|
||||||
%node = %path.getObject(0);
|
%node = %path.getObject(0);
|
||||||
%player = AIPlayer::produce(%name, %node.getTransform());
|
%player = AIPlayer::spawnAtLocation(%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::produce(%name,%spawnPoint)
|
function AIPlayer::spawnAtLocation(%name, %spawnPoint)
|
||||||
{
|
{
|
||||||
// Create the demo player object
|
// Create the demo player object
|
||||||
%player = new AiPlayer()
|
%player = new AiPlayer()
|
||||||
|
|
@ -101,13 +101,13 @@ function AIPlayer::produce(%name,%spawnPoint)
|
||||||
return %player;
|
return %player;
|
||||||
}
|
}
|
||||||
|
|
||||||
function AIPlayer::spawnOnPath(%name,%path)
|
function AIPlayer::spawnOnPath(%name, %path)
|
||||||
{
|
{
|
||||||
// Spawn a player and place him on the first node of the path
|
// Spawn a player and place him on the first node of the path
|
||||||
if (!isObject(%path))
|
if (!isObject(%path))
|
||||||
return 0;
|
return 0;
|
||||||
%node = %path.getObject(0);
|
%node = %path.getObject(0);
|
||||||
%player = AIPlayer::produce(%name, %node.getTransform());
|
%player = AIPlayer::spawnAtLocation(%name, %node.getTransform());
|
||||||
return %player;
|
return %player;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue