flyxdvd Posted May 14, 2015 Report Share Posted May 14, 2015 Ello, There are several ways to spawn in custom buildings etc with map editors and SQF one way is, _vehicle_1449 = objNull; if (true) then { _this = createVehicle ["RoadBarrier_F", [3719.3022, 13044.572, 2.8610229e-005], [], 0, "CAN_COLLIDE"]; _vehicle_1449 = _this; _this setDir -72.15435; _this setPos [3719.3022, 13044.572, 2.8610229e-005]; }; Then another way is private ["_objs"]; _objs = [ ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,[[-0.688844,-0.72491,0],[-0,0,1]],false] ]; { private ["_obj"]; _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"]; _obj allowDamage false; if (_x select 4) then { _obj1 setDir (_x select 2); _obj1 setPos (_x select 1); } else { _obj1 setPosATL (_x select 1); _obj1 setVectorDirAndUp (_x select 3); }; } foreach _objs; Basicly my question is ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,[[-0.688844,-0.72491,0],[-0,0,1]],false] What are these Bold Numbers for and are they neccesary or can you just leave them and put them like this ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,[false], Why am i asking someone i know doesnt like M3Editor but like's the way it exports in the SQF its much easier to allowDamage False; instead of having to put allowDamage False; in every single building, M3 makes a list of buildings Might be a confusing question hehe so if you dont know what i mean feel free to ask FlyX Link to comment Share on other sites More sharing options...
0 1Man Posted May 14, 2015 Report Share Posted May 14, 2015 Well the 1st 2 are coords 2nd is angle and I believe the bold would be height don't really know about that other bold though Link to comment Share on other sites More sharing options...
0 flyxdvd Posted May 14, 2015 Author Report Share Posted May 14, 2015 Well the 1st 2 are coords 2nd is angle and I believe the bold would be height don't really know about that other bold though hmm well the wierd part is i took his list wich he wrote like this: ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,0,0,false], and replaced everything from 0,0 to ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,[[-0.688844,-0.72491,0],[-0,0,1]],false], ["Land_WIP_ruins_F",[14205.6,15432.8,-0.896458],229.091,[[-0.688844,-0.72491,0],[-0,0,1]],false], ["Land_WIP_F",[14435.2,16757.1,0],313.636,[[-0.688844,-0.72491,0],[-0,0,1]],false], ["Land_TentHangar_V1_dam_F",[15140.8,16990.6,0],44.0909,[[-0.688844,-0.72491,0],[-0,0,1]],false], ["Land_TentHangar_V1_dam_F",[15064.4,16998.3,0],64.5455,[[-0.688844,-0.72491,0],[-0,0,1]],false], ["Land_TentHangar_V1_dam_F",[15046.7,17075.8,-1.90735e-006],269.546,[[-0.688844,-0.72491,0],[-0,0,1]],false], ["Land_TentHangar_V1_dam_F",[14457.4,16286.6,0],31.3636,[[-0.688844,-0.72491,0],[-0,0,1]],false], ["Land_Cargo_Tower_V1_No1_F",[14165.4,16287.1,0],223.636,[[-0.688844,-0.72491,0],[-0,0,1]],false], but really everything the same ,[[-0.688844,-0.72491,0],[-0,0,1]],false], then everything spawned on their positions not found any bugs in height or anything so to me those bold stuff looks not necessary because it didnt really matter what was in it Link to comment Share on other sites More sharing options...
0 1Man Posted May 14, 2015 Report Share Posted May 14, 2015 Have you looked at the map addon section to look at how they are adding in building? Link to comment Share on other sites More sharing options...
0 second_coming Posted May 14, 2015 Report Share Posted May 14, 2015 They are the coordinates for changing the angle at which the building sits, if you remove them it will work fine on flat land but if they are placed on a hill they won't be how you placed them in the editor when you get in game. Link to comment Share on other sites More sharing options...
0 flyxdvd Posted May 14, 2015 Author Report Share Posted May 14, 2015 They are the coordinates for changing the angle at which the building sits, if you remove them it will work fine on flat land but if they are placed on a hill they won't be how you placed them in the editor when you get in game. Thnx but basicly whats wrong with this one? ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,0,0,false], i suspect something with the ending i dont really see the necessary brackets kinda like this? ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,0,0,[false], Link to comment Share on other sites More sharing options...
0 flyxdvd Posted May 14, 2015 Author Report Share Posted May 14, 2015 Nvm figured it, ["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,[],false], this works. thnx for all the replies ;) Link to comment Share on other sites More sharing options...
Question
flyxdvd
Ello,
There are several ways to spawn in custom buildings etc with map editors and SQF
one way is,
Then another way is
Basicly my question is
["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,[[-0.688844,-0.72491,0],[-0,0,1]],false]
What are these Bold Numbers for and are they neccesary or can you just leave them and put them like this
["Land_TentHangar_V1_ruins_F",[15067.4,16916.7,0],226.364,[false],
Why am i asking someone i know doesnt like M3Editor but like's the way it exports in the SQF
its much easier to allowDamage False;
instead of having to put allowDamage False; in every single building, M3 makes a list of buildings
Might be a confusing question hehe so if you dont know what i mean feel free to ask
FlyX
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now