Author Topic: AI Spawn Script  (Read 5909 times)

0 Members and 1 Guest are viewing this topic.

zlake

  • Relentless Teamkiller
  • **
  • Posts: 76
  • Killer space clowns. Twas a movie.
    • View Profile
Re: AI Spawn Script
« Reply #60 on: June 12, 2012, 12:06:16 pm »
Buster gave you more than enough to make a working unit and more than enough clues to figure out how to crate a unit.

Xerxes

  • Cheater Apprentice
  • *
  • Posts: 10
    • View Profile
Re: AI Spawn Script
« Reply #61 on: August 08, 2012, 03:44:59 am »
Lots of good info Buster....thanks it was helpfull

stealthstick

  • Klass Klown
  • ***
  • Posts: 360
  • Computer Scientist
    • View Profile
Re: AI Spawn Script
« Reply #62 on: August 08, 2012, 05:15:34 am »
What if its other side of map and you got no visual   :icon_rolleyes2

Then do this.

Code: [Select]
_targ = cursortarget;
deletevehicle _targ;
hint format ["You have deleted: %1", _targ];

It's been a good few years, becoming what I always wanted to be.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: AI Spawn Script
« Reply #63 on: August 08, 2012, 04:49:15 pm »
man im also having trouble getting the ai to target something they are like neutral even if its opposing side :(

setrating ,  dotarget , dofire ( dont use commandtarget or it will notify everyone that you have orderd an ai to kill something if they are on the same side )

ps there is a much better way to do this rather than using an ai unit.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: AI Spawn Script
« Reply #64 on: August 08, 2012, 05:00:54 pm »
What if its other side of map and you got no visual   :icon_rolleyes2

Then do this.


_targ = cursortarget;
deletevehicle _targ;
hint format ["You have deleted: %1", _targ];



?
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

Snuff

  • Online Villain
  • ***
  • Posts: 184
    • View Profile
Re: AI Spawn Script
« Reply #65 on: August 08, 2012, 05:05:21 pm »
Code: [Select]
_plypos = getPos player;
runMrMedicSpawner _plypos;

That's what MrMedic is referring too.

Buster

  • Klass Klown
  • ***
  • Posts: 295
  • Kool Kat
    • View Profile
Re: AI Spawn Script
« Reply #66 on: August 08, 2012, 06:17:53 pm »
What if its other side of map and you got no visual   :icon_rolleyes2

Then do this.


_targ = cursortarget;
deletevehicle _targ;
hint format ["You have deleted: %1", _targ];



?
I will second that. How can this control ai ?appart from that you got no visual?

stealthstick

  • Klass Klown
  • ***
  • Posts: 360
  • Computer Scientist
    • View Profile
Re: AI Spawn Script
« Reply #67 on: August 09, 2012, 02:00:28 am »
What if its other side of map and you got no visual   :icon_rolleyes2

Then do this.


_targ = cursortarget;
deletevehicle _targ;
hint format ["You have deleted: %1", _targ];



?
I will second that. How can this control ai ?appart from that you got no visual?

I thought you were asking "what if I delete something, but don't know/can't see if it was deleted"

If this wasn't your question, then my mistake.
It's been a good few years, becoming what I always wanted to be.