Home   Help Search Login Register  

Author Topic: quicker ai  (Read 479 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
quicker ai
« on: 12 Mar 2005, 16:06:52 »
right i thought of a way to speeden ai timings
firstly its probaly been done before but anyway
have the parameters for the people you what to speeden up then in the script have a script like blanco's fixed pos script there a random move in there wich makes them move randomly atleast i think but if not oh well
anyway then have something like

soldier1 dotarget (command for nearest enemy unit in here if there is one)
add event handler killed to unit soldier is aiming
~wait a few seconds can be changed
soldier1 dofire (nearest soldier command)
wait for event handler to be active then make the unit run alittle then carry on the script

so basically soldier 1 is told manually to target closest enemy unit the an event handler added to nearest unit then soldier 1 fires at nearest unit
when nearest unit is dead soldier 1 runs alittle or can target next nearest soldier