Home   Help Search Login Register  

Author Topic: Patrol Support script  (Read 1080 times)

0 Members and 3 Guests are viewing this topic.

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Patrol Support script
« on: 17 Jun 2005, 18:05:02 »
Hey everyone,

here's an idea for a script that i might use in one of my missions.

When you shoot at a patrol, say in a classic black op mission, and you only manage to kill one of two patrol men, could  there be a script that represents a nearby patrol 'hearing' whats going on and rushing to their aid.

here's a summary:

(i) one of two patrol men gets shot.
(ii) nearby patrol 'hears' whats going on after first patrol man 'shouts' for aid
(iii) nearby patrol rushes to their aid.

This could be handy for adding realism to blackop missions etc.

Thx  ;D

Hauk  8)

Bluelikeu

  • Guest
Re:Patrol Support script
« Reply #1 on: 17 Jun 2005, 18:33:47 »
The script might look something like this:

1. Loop check to see if anyone in the patrol is dead

2. check the distance of any group predifned as capable of hearing things. Edit: Check to make sure that it isn't the same group as the on being fired at, also make sure that the other group is not already under fire, possibly checking the leader to see if he "is ready".

3. if the distance is suitable then send the group over.

4. re-establish previous patrol of the group that heard the incident.


Hope this helps,
Bluelikeu
« Last Edit: 17 Jun 2005, 18:35:58 by Bluelikeu »

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Patrol Support script
« Reply #2 on: 18 Jun 2005, 02:23:43 »
ah thanks, i will use this as the skeleton for the script and post my progress here.  ;D

Thanks bluelikeu  8)

Hauk

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:Patrol Support script
« Reply #3 on: 18 Jun 2005, 16:37:48 »
This may be what you are looking for.

http://www.ofpec.com/editors/resource_view.php?id=498

Blip :joystick:
...NIGHT WALKER....

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:Patrol Support script
« Reply #4 on: 18 Jun 2005, 17:40:52 »
Hmmm, that might be it,

I'll solve this post for the moment, and if i can configure his script, i'll laeve it that way.

Cheers,  ;D

Hauk  8)