Author Topic: AI Spawn Script  (Read 7341 times)

0 Members and 1 Guest are viewing this topic.

s0ybean

  • Intentional Cheater
  • **
  • Posts: 33
    • View Profile
Re: AI Spawn Script
« Reply #15 on: June 06, 2012, 09:45:43 pm »
True, forget that then, this is simpler  :icon_teehee

I lol'd, marry me.

zlake

  • Relentless Teamkiller
  • **
  • Posts: 76
  • Killer space clowns. Twas a movie.
    • View Profile
Re: AI Spawn Script
« Reply #16 on: June 06, 2012, 09:48:35 pm »
Players are on the west side and zombies are civilian.

WEST setFriend [Civilian, 0];

would be an example. I'm working on it myself.


I found that players are on the west side by
if (side player == west) then {hint "You are on the West side.";};

Can tell zombies are civi by trying to get them to attack them.

Fishgun123

  • Online Villain
  • ***
  • Posts: 223
    • View Profile
Re: AI Spawn Script
« Reply #17 on: June 06, 2012, 09:52:27 pm »
Hi I found out one way the otherday. Press space to bring up that type of green command thing and look at the player you want to kill. Double click right and the AI should say targeted blah blah etc. If not then I don't know sorry.  :smile

Buster

  • Klass Klown
  • ***
  • Posts: 295
  • Kool Kat
    • View Profile
Re: AI Spawn Script
« Reply #18 on: June 06, 2012, 09:55:41 pm »
Afaik, Civillian are friendly to everyone. So not sure if they will target anything. Last time I tried arming the CIV's they dont even pick up a weapon  :unsure
I could be wrong though, might try this myself  :icon_thumbsup

Fishgun123

  • Online Villain
  • ***
  • Posts: 223
    • View Profile
Re: AI Spawn Script
« Reply #19 on: June 06, 2012, 10:03:58 pm »
Yes civs work on armed vehicle and stuff and do target civs on Cheranus life and stuff  :icon_magician

Buster

  • Klass Klown
  • ***
  • Posts: 295
  • Kool Kat
    • View Profile
Re: AI Spawn Script
« Reply #20 on: June 06, 2012, 10:20:03 pm »
Yes civs work on armed vehicle and stuff and do target civs on Cheranus life and stuff  :icon_magician
There ya go then  :icon_thumbsup
Usually I have to set them to a group though
Code: [Select]
_group = createGroup east;
[_civilianname] joinsilent _group;

zlake

  • Relentless Teamkiller
  • **
  • Posts: 76
  • Killer space clowns. Twas a movie.
    • View Profile
Re: AI Spawn Script
« Reply #21 on: June 06, 2012, 10:20:49 pm »
Hi I found out one way the otherday. Press space to bring up that type of green command thing and look at the player you want to kill. Double click right and the AI should say targeted blah blah etc. If not then I don't know sorry.  :smile
Well would be nice to make them auto attack other players. Can you even make west hostile to west?

Fishgun123

  • Online Villain
  • ***
  • Posts: 223
    • View Profile
Re: AI Spawn Script
« Reply #22 on: June 06, 2012, 10:47:05 pm »
Umm I have no clue mate, but yes I agree it would be pretty cool.  :icon_rolleyes2

zlake

  • Relentless Teamkiller
  • **
  • Posts: 76
  • Killer space clowns. Twas a movie.
    • View Profile
Re: AI Spawn Script
« Reply #23 on: June 06, 2012, 10:53:48 pm »
Yes civs work on armed vehicle and stuff and do target civs on Cheranus life and stuff  :icon_magician
There ya go then  :icon_thumbsup
Usually I have to set them to a group though
Code: [Select]
_group = createGroup east;
[_civilianname] joinsilent _group;
I lub you long time. It auto attacks players but zombies nah
« Last Edit: June 06, 2012, 10:59:21 pm by zlake »

katie1992

  • Intentional Cheater
  • **
  • Posts: 38
    • View Profile
Re: AI Spawn Script
« Reply #24 on: June 06, 2012, 11:11:56 pm »
Yes civs work on armed vehicle and stuff and do target civs on Cheranus life and stuff  :icon_magician
There ya go then  :icon_thumbsup
Usually I have to set them to a group though
Code: [Select]
_group = createGroup east;
[_civilianname] joinsilent _group;
I lub you long time. It auto attacks players but zombies nah

It does?
Auto attacks every player except yourself.

Is there a way to stop them firing at players? I.E: Hold fire, does it work?

Buster

  • Klass Klown
  • ***
  • Posts: 295
  • Kool Kat
    • View Profile
Re: AI Spawn Script
« Reply #25 on: June 06, 2012, 11:20:12 pm »
try this :
Code: [Select]
_civilianname disableAI "TARGET";
_civilianname disableAI "AUTOTARGET";
Then :
Code: [Select]
_civilianname enableAI "TARGET";
_civilianname enableAI "AUTOTARGET";
Try it its just a quick thought so its untested  :icon_thumbsup

katie1992

  • Intentional Cheater
  • **
  • Posts: 38
    • View Profile
Re: AI Spawn Script
« Reply #26 on: June 06, 2012, 11:38:14 pm »
I'm confused as to where to place that line fo command ;/

Fishgun123

  • Online Villain
  • ***
  • Posts: 223
    • View Profile
Re: AI Spawn Script
« Reply #27 on: June 06, 2012, 11:38:24 pm »
Buster I PM'ed you.

Fishgun123

  • Online Villain
  • ***
  • Posts: 223
    • View Profile
Re: AI Spawn Script
« Reply #28 on: June 06, 2012, 11:41:44 pm »
I'm confused as to where to place that line fo command ;/
Same, thats exactly what I PM'ed Buster about.

zlake

  • Relentless Teamkiller
  • **
  • Posts: 76
  • Killer space clowns. Twas a movie.
    • View Profile
Re: AI Spawn Script
« Reply #29 on: June 06, 2012, 11:44:26 pm »
They are auto attacking players and zombies. What if I just want them to attack players also how do I give you rep?