mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
stop controllobjects from fighting
This commit is contained in:
parent
b864908efd
commit
185acd23e0
|
|
@ -5475,6 +5475,7 @@ bool ShapeBase::setAIController(SimObjectId controller)
|
|||
bool ShapeBase::getAIMove(Move* move)
|
||||
{
|
||||
if (!isServerObject()) return false;
|
||||
if (isControlled()) return false; //something else is steering us, so use that one's controller
|
||||
if (!(mTypeMask & VehicleObjectType || mTypeMask & PlayerObjectType)) return false; //only support players and vehicles for now
|
||||
if (mAIController)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue