OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hauk on 17 Jun 2005, 18:05:02

Title: Patrol Support script
Post by: Hauk 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)
Title: Re:Patrol Support script
Post by: Bluelikeu 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
Title: Re:Patrol Support script
Post by: Hauk 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
Title: Re:Patrol Support script
Post by: Blip 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:
Title: Re:Patrol Support script
Post by: Hauk 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)