bvrettski 10 Posted October 11, 2013 I'm using the following script to place buildings via an empty object (helipad) but I need to raise and lower some of them: test = "Land_i_Stone_HouseBig_V1_F" createVehicle position this; deleteVehicle this; test setDir -70; test setVariable ["mapbuilding",true,true]; I have tried raising and lowering the empty object but that doesn't do it and I have tried adding: offsetY=3; That didn't work either. I could use some help if anyone has any insights. Thanks for your help in advance. Share this post Link to post Share on other sites
lappihuan 178 Posted October 11, 2013 You can use this Editor Addon. It enables you every Object ingame to place it on the Map. Missions made with this editor mod, don't require this addon to play it. Share this post Link to post Share on other sites
bvrettski 10 Posted October 11, 2013 You can use this Editor Addon.It enables you every Object ingame to place it on the Map. Missions made with this editor mod, don't require this addon to play it. I have it but it doesn't address my issue. Thanks though it is a good tool. I'm placing buildings in this fashion to get around the effects of another script. Share this post Link to post Share on other sites
lappihuan 178 Posted October 11, 2013 This should do it and work even with other clients. ["{_veh = createVehicle ["Land_i_Stone_HouseBig_V1_F", [getPosATL this select 0, getPosATL this select 1,3], [], 0, ""];}","BIS_fnc_spawn"] spawn BIS_fnc_MP; Not tested as I'm not at home. Share this post Link to post Share on other sites
Gekkibi 11 Posted October 11, 2013 This should do it and work even with other clients. ["{_veh = createVehicle ["Land_i_Stone_HouseBig_V1_F", [getPosATL this select 0, getPosATL this select 1,3], [], 0, ""];}","BIS_fnc_spawn"] spawn BIS_fnc_MP; Not tested as I'm not at home. Wouldn't that create one building per player..? @OP Have you tried using "test setPos [getPos test select 0, getPos test select 1, altitudeYouWantToHave];"? Share this post Link to post Share on other sites
bvrettski 10 Posted October 11, 2013 Thanks guys.... I'll try to test later and report back... The script it not one i wrote but I believe its designed to get around a cleanup script that was deleting the custom placed buildings. Share this post Link to post Share on other sites
lappihuan 178 Posted October 11, 2013 Wouldn't that create one building per player..?@OP Have you tried using "test setPos [getPos test select 0, getPos test select 1, altitudeYouWantToHave];"? Yes you are right! I was tired and wantet to go home from work ^^ _veh = createVehicle ["Land_i_Stone_HouseBig_V1_F", [getPosATL this select 0, getPosATL this select 1,3], [], 0, ""]; should do it. Share this post Link to post Share on other sites
bvrettski 10 Posted October 12, 2013 I experimented with your script but perhaps I am too much of a scripting noob to understand it and make it work properly. I could get the buildings to spawn but could not get the elevation to change. I've attached a sample mission file to show the issue I'm having. It shows a standard raised building, one using your script and one using the script I mentioned in the OP. Link here: Sample Mission Share this post Link to post Share on other sites
lappihuan 178 Posted October 12, 2013 I have added a line to your code in the Init of one helipad: test = "Land_i_Stone_HouseBig_V1_F" createVehicle position this; deleteVehicle this; test setPosATL [getPosATL test select 0, getPosATL test select 1, 30]; test setDir -70; test setVariable ["mapbuilding",true,true]; To change the height, change this number: test setPosATL [getPosATL test select 0, getPosATL test select 1, 30]; Share this post Link to post Share on other sites
bvrettski 10 Posted October 13, 2013 Works like a charm...thank you very much. Thats why your the best... Share this post Link to post Share on other sites
bvrettski 10 Posted October 16, 2013 One followup issue.... I tried placing an object inside a building and it pops it outside every time. Its doing some kind of collision detection it seems. Is there any way around that? Share this post Link to post Share on other sites
cuel 25 Posted October 16, 2013 setPosATL after you've created it Share this post Link to post Share on other sites
Gekkibi 11 Posted October 16, 2013 You can also try using CAN_COLLIDE when using the One And Only createVehicle command. Dump the old obsolete command. Share this post Link to post Share on other sites
bvrettski 10 Posted October 17, 2013 The current working script looks like this: test = "Land_TableDesk_F" createVehicle position this; test setPosATL [getPosATL test select 0, getPosATL test select 1, 1];deleteVehicle this; test setDir -55; test setVariable ["mapbuilding",true,true]; I've been trying your suggestions but the desk is still relocated outside of buildings. Share this post Link to post Share on other sites
cuel 25 Posted October 17, 2013 Try using the createVehicle array, normal createVehicle is obsolete test = createVehicle ["Land_TableDesk_F",getPosATL this,[], 0, "NONE"] Share this post Link to post Share on other sites