Jump to content
  • 0

Carepackages in safezones


Draay

Question

Hey guys,

 

I've tried several way of restricting the carepackage script from not running inside a safezone.

Any help would be helpful. I know roughly that i need something in the first "if" section of the code, but i dont know what it is.

I've tried everything i could think of.

 

So what i want:
If _hasbriefs and is NOT in a safezone.

 

Thanks in advance!

 

http://pastebin.com/CtFHNjYf

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Thanks Gr8, testing it now.

Will edit my post.

 

EDIT:

Ok i've tried that and it hasn't worked.

 

I've also tried the following:

if !(canbuild) exitWith {
titleText ["You Cannot call a carepackage in a safezone","PLAIN DOWN"];
} else {
if (_hasBriefs >= _cost) then {

And adding a }; at the end.

 

Neither have worked.

It completely breaks it, it won't spawn one or give me errors. Checked RPT but no errors either.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...