Jump to content
Sign in to follow this  
EvenLease

Restricted Zone Module

Recommended Posts

How does this module actually work?

I've tried to use it to create an 'Arena Style' pvp... to not allow the player to leave the zone.

I also want to use it to make sure a Opfor player doesn't enter the Blufor base zone, and vice versa. So no spawn camping happens.

Any help would be appreciated, I have searched but as this alpha is new there doesn't seem to be many answers if any at all.

Edited by EvenLease

Share this post


Link to post
Share on other sites

Checking this forum and using SEARCH function you can find this topic How this Restriction Zone Module works? started 03/07/2013

BTW YOU CAN TRY THIS: (restriction module ain't very nice i prefeir to have not just a warning message but time left before to die also)

place a trigger in the battle area

name: Restriction_Zone_1

activated by: anybody

repeatedly

present

on condition field:

!(vehicle player in thislist)

on Activation field:

SMNZoneRestrictionscript = [10] spawn SMN1279_fnc_restriction;

where 10 is the time array before to die when you go outside the trigger, you can set as many seconds as you want

on deactivation field:

hint"";terminate SMNZoneRestrictionscript;

in your

init.sqf

SMN1279_fnc_Restriction = compile preprocessFileLineNumbers "SMN_fnc_restriction.sqf";

SMN_fnc_restriction.sqf

_t = _this select 0;

waitUntil 
{
	if(!alive player) exitwith {};
	_text = format ["GET BACK OR YOU'LL DIE IN: %1 Seconds", _t];
	hint _text;
	sleep 1;
	_t = _t - 1;

_t == 0
};

if(!alive player) exitwith {};
hint "YOU DESERTER!";


sleep 3;

titleCut ["","BLACK OUT", 1];

cameraEffectEnableHUD false;
showHUD false;
enableSentences false;
1 fadeRadio 0;
1 fadeSound 0;
1 fadeMusic 0;
sleep 1;
player addRating -10000;
failMission "LOSER";

FOR MP PvP

same as above with the trigger

init.sqf

SMN1279_fnc_Restriction = compile preprocessFileLineNumbers "MP_SMN_fn_restriction.sqf";

MP_SMN_fn_restriction.sqf

_t = _this select 0;

waitUntil 
{
	if(!alive player) exitwith {};
	_text = format ["GET BACK OR YOU'LL DIE IN: %1 Seconds", _t];
	hint _text;
	sleep 1;
	_t = _t - 1;

_t == 0
};

if(!alive player) exitwith {};
hint "YOU DESERTER!";

sleep 0.5;
player addRating -10000;
player setDamage 1 ;

Edited by Simon1279
added script

Share this post


Link to post
Share on other sites
Checking this forum and using SEARCH function you can find this topic How this Restriction Zone Module works? started 03/07/2013

BTW YOU CAN TRY THIS: (restriction module ain't very nice i prefeir to have not just a warning message but time left before to die also)

place a trigger in the battle area

name: Restriction_Zone_1

activated by: anybody

repeatedly

present

on condition field:

!(vehicle player in thislist)

on Activation field:

SMNZoneRestrictionscript = [10] spawn SMN1279_fnc_restriction;

where 10 is the time array before to die when you go outside the trigger, you can set as many seconds as you want

on deactivation field:

hint"";terminate SMNZoneRestrictionscript;

in your

init.sqf

SMN1279_fnc_Restriction = compile preprocessFileLineNumbers "SMN_fnc_restriction.sqf";

SMN_fnc_restriction.sqf

_t = _this select 0;

waitUntil 
{
	if(!alive player) exitwith {};
	_text = format ["GET BACK OR YOU'LL DIE IN: %1 Seconds", _t];
	hint _text;
	sleep 1;
	_t = _t - 1;

_t == 0
};

if(!alive player) exitwith {};
hint "YOU DESERTER!";


sleep 3;

titleCut ["","BLACK OUT", 1];

cameraEffectEnableHUD false;
showHUD false;
enableSentences false;
1 fadeRadio 0;
1 fadeSound 0;
1 fadeMusic 0;
sleep 1;
player addRating -10000;
failMission "LOSER";

FOR MP PvP

same as above with the trigger

init.sqf

SMN1279_fnc_Restriction = compile preprocessFileLineNumbers "MP_SMN_fn_restriction.sqf";

MP_SMN_fn_restriction.sqf

_t = _this select 0;

waitUntil 
{
	if(!alive player) exitwith {};
	_text = format ["GET BACK OR YOU'LL DIE IN: %1 Seconds", _t];
	hint _text;
	sleep 1;
	_t = _t - 1;

_t == 0
};

if(!alive player) exitwith {};
hint "YOU DESERTER!";

sleep 0.5;
player addRating -10000;
player setDamage 1 ;

I don't know what I'm doing wrong. The trigger triggers even when I'm not in the area.

How do I regulate it so that it does only trigger when a helicopter enters the area?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×