HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how to not allow player to do manual attack to an ally..

03-18-2004, 11:40 AM#1
nkknight
ya, so can someone tell me how to not allow a player to do manual atack to an allies unit? like clicking the attack button and target a ally unit. can anyone tell me how to do it without setting 1 team air and 1 team ground?
03-18-2004, 05:09 PM#2
BattleBotv8.2
Unit Generic event:
Unit is attacked

Condiction:
Boolean comparisen;
Player - Alliance or something like that
Owner of attacking unit is an ally of attacked equal to true

Unit - Issue order with no point
Order attacking unit to stop
03-18-2004, 05:42 PM#3
Pyrus
Or maybe a move to target instead of a stop. As if he had just right clicked
03-18-2004, 07:25 PM#4
nkknight
thank you so much
03-18-2004, 08:27 PM#5
Vexorian
The best trigger for this issue is

Events:
A unit is issued an order targeting an object
Conditions
(boolean) Owner of (triggering unit) is an ally of Owner of (target unit of issued order)
Actions:
set TempPoint = (position of (target unit of issued order) )
Order Triggering unit to attack move TempPoint
Custom Script: call RemoveLocation(udg_TempPoint)
03-18-2004, 10:27 PM#6
Bloodlust
Vex, why "TempPoint" instead of Order Trggering unit to move to position of target unit of issued order?
03-19-2004, 03:09 AM#7
cangrejo
Quote:
Originally Posted by Lord Vexorian
The best trigger for this issue is

Events:
A unit is issued an order targeting an object
Conditions
(boolean) Owner of (triggering unit) is an ally of Owner of (target unit of issued order)
Actions:
set TempPoint = (position of (target unit of issued order) )
Order Triggering unit to attack move TempPoint
Custom Script: call RemoveLocation(udg_TempPoint)

Maybe you should add an order comparison so this doesn't happen when you issue a follow order or soemthing like that..