477 {
480
482 action_target = NULL;
483 int targetsCount =
m_Targets.GetTargetsCount();
484 if (targetsCount)
485 {
486 for (int i = 0; i < targetsCount; ++i)
487 {
489 Object targetObject = action_target.GetObject();
490 Object targetParent = action_target.GetParent();
491 int surfaceLiquidType = action_target.GetSurfaceLiquidType();
492
493 if (targetParent)
494 {
495 break;
496 }
497
498 if (targetObject)
499 {
500 break;
501 }
502
504 {
505 break;
506 }
507 }
508 }
509 else
510 {
511 action_target =
new ActionTarget(null, null, -1, vector.Zero, -1);
512 }
513 return action_target;
514 }
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
ref ActionTargets m_Targets
ref ActionTarget m_ForceTarget