I got a question I host some lan parties and want to know how to keep the civs out of the independent area and the bluefor area, right now its all players and sorta killing the fun.

For example i want to keep the civs out of the independent and bluefor area and want to civs out of the independent area.

Thanks.

Total comments : 1, displayed on page: 1

Out-of-bounds zone script
by
Norrin

Description:
When a player enters a defined zone on the map he gets an onscreen warning message:

"You are leaving the field of combat. You have 10 seconds to return to the battlefield"

A timer starts counting down and if he hasn't left the zone in that time he will die. If he does leave the zone the message and timer disappear and the player is unharmed.

Usage:
1. Copy across the boundary.sqf into your mission directory.
2. Set up your respawn settings in your description.ext as normal.
3. Create some rectangular or ellipse shaped markers on the map. I've given them the names "Out_of_Bounds_1" and "Out_of_Bounds_2" in the example mission in the zip file.
4. In the init.sqf you'll need a line of code activating the boundary.sqf for each zone like the following:

call {["name_of_zone"] execVM "boundary.sqf"};

So in my example mission where I have 2 zones called "Out_of_Bounds_1" and "Out_of_Bounds_2" the init.sqf looks like this:

Test mission:
I've marked the two boundary zones with some wire so you can identify them more easily in game. Also try driving the Hummer into the zones and see what happens.

Notes:
This script is designed so that it will only work with players. Its possible to revise it so it works with both playable AI and unplayable AI but they're going to have no idea they've entered a no go zone. I can also change it so that the player gradually loses health say 0.1 damage per sec after the timer expires.