IsNear Army
» Siedler Map Source Forum » Siedler DEdK Script Forum » IsNear Army
Seiten: 1
Qba331PL
|
#1 04.09.2018 19:02 Beiträge: 102 |
IsNear Army
Hi!
I need help with moving armies. ArmyOne relocates, and when it arrives to its destination, it attacks. I use this function:
function ControlArmyOne() if IsNear(armyOne,"pktOne",3000) then FrontalAttack( armyOne ) return true end end
But it doesn't work.
SH
|
#2 04.09.2018 19:18 Beiträge: 127 |
Here you can find the code to function IsArmyNear:
http://www.siedler-games.de/si...u.php/utilfunctions:isarmynear
function ControlArmyOne() if IsArmyNear(armyOne,"pktOne",3000) then StartSimpleJob("Attack") return true end end --FrontalAttack Must be in SimpleJob function Attack() FrontalAttack( armyOne ) end
____________________
Sorry for my German
Seiten: 1