Jump to content
Sign in to follow this  
somecallmenomad

How to make a weapon box accessible to only one team?

Recommended Posts

Launch this code (not tested) via execVM from client side:

while {true} do {
waitUntil {
	sleep 0.1;

	!(isNull (findDisplay 106)) // Waits until player opens inventory
};

_display = findDisplay 106;

_object = cursorTarget;

if (((typeOf _object) == "USBasicWeapons_EP1") and {playerSide != west}) then {
	_display closeDisplay 0;

	hint "Access is blocked for your side";
};

waitUntil {
	sleep 0.1;

	isNull _display
};
};

This code is just example to understand principle. Edit it as you need.

Edited by Schatten

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  

×