Jump to content

Edit mission.sqm


Metalfoundry

Recommended Posts

No chance to edit the mission.sqm? Just want to place some billboards with server infos at the spawn points...

 

After editing the mission, i cant connect to the server....

 

Simple way for billboard just stick something like this in your server.pbo then exec it. If you don't have a server PBO yet its really easy to make an auto starting one I can do an example if need be

_Billboard1 = createVehicle ["Land_Billboard_F", [13338.2,14530.4,-0.365062], [], 0, "CAN_COLLIDE"];
_Billboard1 setDir 157.719;
_Billboard1 setPosATL [13338.2,14530.4,-0.365062];
_Billboard1 setObjectTextureGlobal [0, "dmr\img\bbkos.jpg"];
_Billboard2 = createVehicle ["Land_Billboard_F", [13338.3,14530.2,-0.365062], [], 0, "CAN_COLLIDE"];
_Billboard2 setDir 337.719;
_Billboard2 setPosATL [13338.3,14530.2,-0.365062];
_Billboard2 setObjectTextureGlobal [0, "dmr\img\bbkos.jpg"];

_Billboard3 = createVehicle ["Land_Billboard_F", [18439.4,14268.9,0.700289], [], 0, "CAN_COLLIDE"];
_Billboard3 setDir 60.127;
_Billboard3 setPosATL [18439.4,14268.9,0.700289];
_Billboard3 setObjectTextureGlobal [0, "dmr\img\bbkos.jpg"];	
_Billboard4 = createVehicle ["Land_Billboard_F", [18440,14269.4,0.713572], [], 0, "CAN_COLLIDE"];
_Billboard4 setDir 240.127;
_Billboard4 setPosATL [18440,14269.4,0.713572];
_Billboard4 setObjectTextureGlobal [0, "dmr\img\bbkos.jpg"];

Link to comment
Share on other sites

if (isServer) then {
private ["_objs"];
_objs = [
	["Land_Billboard_F",[1011.39,2076.33,0.00581789],300.662,[[-0.860191,0.509972,0],[0,0,1]],false],
	["Land_Billboard_F",[1018.79,2072,-0.00579834],120.662,[[0.860192,-0.509971,0],[0,-0,1]],false]	
];

{
	private ["_obj"];
	_obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
	if (_x select 4) then {
		_obj setDir (_x select 2);
		_obj setPos (_x select 1);
		_obj setObjectTextureGlobal [0, "bilboards\rules_e.paa"];
	} else {
		_obj setPosATL (_x select 1);
		_obj setVectorDirAndUp (_x select 3);
		_obj setObjectTextureGlobal [0, "bilboards\rules_e.paa"];		
	};
} foreach _objs;

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