Home   Help Search Login Register  

Author Topic: Sniper Vantage Points.  (Read 935 times)

0 Members and 2 Guests are viewing this topic.

fragsta

  • Guest
Sniper Vantage Points.
« on: 31 Aug 2003, 17:43:57 »
Say I was making a mission where there was an AI sniper who was sniping people as they came by, like in a valley or something. If I put maybe about 6 game logics around the area at different points, how do i make him move to different ones every time he has shot a wave of people? I know I would need to name the game logics differently, and use "move" in a script and also "random" but how would it work? Thx in advance!

Drozdov

  • Guest
Re:Sniper Vantage Points.
« Reply #1 on: 31 Aug 2003, 20:40:34 »
You could use a counter as a condition that counted the number of enemies there were. As he shoots them this would go down. You could specify it so that when the counter reaches certain numbers the sniper moves on.

fragsta

  • Guest
Re:Sniper Vantage Points.
« Reply #2 on: 31 Aug 2003, 23:04:14 »
But how do I use "random" for randomizing to which game logic he moves?

Drozdov

  • Guest
Re:Sniper Vantage Points.
« Reply #3 on: 31 Aug 2003, 23:20:01 »
Hmm, you could try this. Make an array of all the game logic units. Maybe you could then do something like arrayname select random 5 where 5 (+1) is the number of Game Logics in the array. That probably won't work since I've never tried anything vaguely resembling it. Just thinking out loud. But give it a try, you never know...

fragsta

  • Guest
Re:Sniper Vantage Points.
« Reply #4 on: 01 Sep 2003, 01:40:58 »
array? I hope i dont sound annoyin but could someone make up a script quickly? thanks for yuor help guys, im just new to a lot of stuff

B-2-0

  • Guest
Re:Sniper Vantage Points.
« Reply #5 on: 01 Sep 2003, 01:56:51 »
I am sure i have seen a script in the snippets section for a sniper that changes position.

[Edit]Yeah, thought i had, here it is.....http://www.ofpec.com/includes/download2.php?id=235
« Last Edit: 01 Sep 2003, 02:07:18 by B-2-0 »

fragsta

  • Guest
Re:Sniper Vantage Points.
« Reply #6 on: 01 Sep 2003, 15:41:19 »
Thanks B20, that script is really good for realism!

B-2-0

  • Guest
Re:Sniper Vantage Points.
« Reply #7 on: 01 Sep 2003, 15:49:31 »
No problemo m8, make sure u hit the solve button ;)