Jump to content
  • 0

How can i fix this problem about use Wooden Ladder bug get into base


J.Dominic

Question

3 answers to this question

Recommended Posts

  • 0

@J.Dominic

well im here by the revange!  after try twenty diferents syntax  i test it and works... but you know try by your self and tell me

custom modular_build.sqf

find:

_classname = getText (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "create");
_classnametmp = _classname;

below paste:

if (_classname isKindOf "WoodLadder_DZ") exitWith {
dayz_actionInProgress = false;
systemChat("Object Not Allowed in this server");
};

iF works,, please made a new thread in 1.6 mods or tools about it, for everyone who use

DZE_requireplot = 0;

 

Link to comment
Share on other sites

  • 0

and here you got .. same as above but more complete: (allow laders but not near of walls)

check if i miss some objects in _NOTALLOW

 

find:

_classname = getText (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "create");
_classnametmp = _classname;

below paste:

 

Spoiler

_playerPos = getPosATL player;
_NOTALLOW = ["WoodSmallWall_DZ","CinderWallHalf_DZ","CinderWall_DZ","CinderWallSmallDoorway_DZ","CinderWallDoorway_DZ","WoodSmallWallThird_DZ",
"WoodSmallWallWin_DZ","WoodSmallWallDoor_DZ","Land_DZE_WoodDoor","Land_DZE_WoodDoorLocked","Land_DZE_GarageWoodDoor","Land_DZE_GarageWoodDoorLocked","WoodLargeWall_DZ",
"WoodLargeWallWin_DZ","WoodLargeWallDoor_DZ","Land_DZE_LargeWoodDoor","Land_DZE_LargeWoodDoorLocked"];

_nearRestr = count nearestObjects [_playerPos, _NOTALLOW, 5] > 0;

if (_nearRestr && (_classname isKindOf "WoodLadder_DZ") or (_classname isKindOf "WoodStairs_DZ") or (_classname isKindOf "WoodStairsSans_DZ") ) exitWith {
dayz_actionInProgress = false;
systemChat("This Object is Not Allowed near of a wall");
};

 

remember the private section for _playerpos _nearrest and _NOTALLOW variables

Link to comment
Share on other sites

  • 0
On 16/1/2560 at 9:35 PM, juandayz said:

@J.Dominic

well im here by the revange!  after try twenty diferents syntax  i test it and works... but you know try by your self and tell me

custom modular_build.sqf

find:


_classname = getText (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActions" >> "Build" >> "create");
_classnametmp = _classname;

below paste:


if (_classname isKindOf "WoodLadder_DZ") exitWith {
dayz_actionInProgress = false;
systemChat("Object Not Allowed in this server");
};

iF works,, please made a new thread in 1.6 mods or tools about it, for everyone who use


DZE_requireplot = 0;

 

It's working thank you very much sir @juandayz

And i like first script cuz i want not allow place every where.

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...