Arrew
Registered:1393602597 Posts: 2,750
Posted 1444783099
Reply with quote
#1
Is it possible to get Neutrals to target enemy drones in mission scripting?
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1444848718
· Edited
Reply with quote
#2
I've never tried it, but I would guess no. That would almost certainly require an AI block, and there is no such command defined. ATTACK wouldn't work, because it takes a named target, and drones don't have names. CHASE_ANGER is no good, because once the drone hits, it is destroyed, and so there's nothing for the ship to agro on. (Except the ship that launched the drone) The closest you could come is to set a timer, which every couple of seconds calls "destroy_near" on all drones near the neutral ship.
Arrew
Registered:1393602597 Posts: 2,750
Posted 1444869457
Reply with quote
#3
OK thanks Ryleyra I did find this;
With that I have just about everything I need to make a "player bot"... Except the actual time to put all of the code together. :s
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1444921205
Reply with quote
#4
Found what? Looks like you left something out, a link maybe?
Arrew
Registered:1393602597 Posts: 2,750
Posted 1444956400
Reply with quote
#5
hahah how did that happen LOL>
Yeah your right I just found the code to destroy drones. Just time to put the player bot stuff together...
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1444998918
Reply with quote
#6
I think that the defend mission causes neutrals to shoot drones.
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill
Arrew
Registered:1393602597 Posts: 2,750
Posted 1445002139
Reply with quote
#7
But I wanted it in script, if you know what I mean.