Jump to content

Can sumone help


way420

Recommended Posts

no none but nothing seems to work missions do treasure as well but as for loot spawns and zoombies nothing shows on server I just think im putting it together wrong I just couldn't find a good example of hoe to keep adding to the init file and or if I am doing it right

Link to comment
Share on other sites

maybe try this,
 

if (isDedicated) then {
	[] execVM "\q\addons\zombiemission\init.sqf";
	
	fn_createMissionMarker = {	private["_create","_markerPos","_markerName","_marker"];
	_create = _this select 0;
	
	if(!_create)then[{	//delete marker
		if (getMarkerColor "MissionMarker" != "")then{	//Only delete existing Marker
			deleteMarkerLocal "MissionMarker";
		}; 
	},{	//else create marker
	_markerPos = _this select 1;
	_markerName = _this select 2;
	
	_marker = createMarkerLocal ["MissionMarker", _markerPos];
	_marker setMarkerPosLocal _markerPos;
	_marker setMarkerTypeLocal "mil_destroy";  
	_marker setMarkerTextLocal format["%1",_markerName];  
	_marker setMarkerColorLocal "ColorRed";
	_marker setMarkerDirLocal -37;
	_marker setMarkerSizeLocal [1.2,1.2];
	}];
};
[] execVM "zombie\compiles.sqf";
"playZSoundHurt" addPublicVariableEventHandler {(_this select 1) call fncNextSound};
"playZSound" addPublicVariableEventHandler {(_this select 1) call fncNextSound};

if(!isNil "GlobalMissionMarker")then{GlobalMissionMarker call fn_createMissionMarker};
"GlobalMissionMarker" addPublicVariableEventHandler {_this select 1 call fn_createMissionMarker};
"GlobalHint" addPublicVariableEventHandler {hint parseText format["%1", _this select 1]};

if(toLower worldName in ["chernarus","chernarus_summer"])then{
	([4654.62,9593.63,0] nearestObject 145259) setDamage 1;
	([4654.62,9593.63,0] nearestObject 145260) setDamage 1;
};	//Fix for something, find out ;)

if (isServer) then {
    fn_getBuildingstospawnLoot = compile preProcessFileLineNumbers "custom\LSpawner\fn_LSgetBuildingstospawnLoot.sqf";
    LSdeleter = compile preProcessFileLineNumbers "custom\LSpawner\LSdeleter.sqf";
    execVM "custom\LSpawner\Lootspawner.sqf";
};
Link to comment
Share on other sites

ill try and let you know ty and that part where you droped the if is dedicated from zombie line that's what feels wrong cause it states that at top so I was thinkin y twice but im trying it now

 

 

 

 

 

 

update I tried it with your init but it wouldn't load missions so I changed it alil leaving out the if dedicated so everthing loads now when joining server I get script q\addons\zombiemissions\init.sqf not found and yes the zombie pbo is in the addons folder im so noob at this stuff

 

 

 

update afterplaying around with it for a few hours unpacking redoing then repacking everything trying a few more ways of editing it it still wont work I just got a sinking feeling its wrong sumhow thank you for your help

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