Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Arrew

Avatar / Picture

Registered:
Posts: 2,750
Reply with quote  #1 
Is it possible to get Neutrals to target enemy drones in mission scripting?
ryleyra

Registered:
Posts: 3,214
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

Avatar / Picture

Registered:
Posts: 2,750
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:
Posts: 3,214
Reply with quote  #4 
Found what? Looks like you left something out, a link maybe?
Arrew

Avatar / Picture

Registered:
Posts: 2,750
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

Avatar / Picture

Administrator
Registered:
Posts: 2,990
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

Avatar / Picture

Registered:
Posts: 2,750
Reply with quote  #7 
But I wanted it in script, if you know what I mean.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.