Coolinator 10 Posted December 5, 2014 (edited) Is there an easier way to put objects on a 2nd floor building rather than just putting random numbers by using getpos code? It taking me hours just to put a desk and a laptop on a 2nd floor house. It's really frustating. I still can't make it perfect :( its either the laptop or desk floating in the air :/ For now, i've just took off the desk, and decided to put the laptop on the floor, i've had no other choice :( I also tried putting "this enableSimulationGlobal false;" hoping that it will place the desk and laptop on perfect postion on 2nd floor, but no luck :/ i wish u can put objects precisely like the "The Sims" game. Edited December 5, 2014 by Coolinator Share this post Link to post Share on other sites
froggyluv 2136 Posted December 5, 2014 Yep, a 3d editor is much needed and they are hinting at it for one of the upcoming DLC's or expansion if I recall correctly Share this post Link to post Share on other sites
the_demongod 31 Posted December 5, 2014 Yep, a 3d editor is much needed and they are hinting at it for one of the upcoming DLC's or expansion if I recall correctly Saw this too. I am extremely excited for this feature. On the original topic, froggyluv pretty much answered it. For AI units, it is possible to give them a waypoint to move into certain positions in the house (all buildings have nodes near windows that AI can be ordered to stand at), but not inanimate objects. One way you can do this is to get the MCC mod and use Zeus to create your mission. Then go into the MCC interface and save the mission as an .sqm file. And then (this is my personal preference) you can open this mission file you have created and copy the objects in the editor and paste them into a new mission. I don't know if this is necessary but I do it anyways just to make sure that I'm only getting the object locations and not ending up with random stuff I don't need in my final mission (i.e. data left over from MCC). Share this post Link to post Share on other sites
jshock 513 Posted December 5, 2014 You could use the elevation input in the object menu in the editor as well (still trial and error for placement), and austin_medic just released a Zeus Mission Builder that exports to .sqm as well. DreadedEntity also has a code snippet for Base Builders as well that may be of use too. Share this post Link to post Share on other sites
dreadedentity 278 Posted December 5, 2014 modelToWorld or setPosATL Share this post Link to post Share on other sites
Coolinator 10 Posted December 5, 2014 To be honest guys, im not really familiar using Zeus, i haven't used it. So, im really scared to use it because i don't want to overwrite or messed up my saved mission that i created in my editor. I will give it a try though. Share this post Link to post Share on other sites
jshock 513 Posted December 5, 2014 If your going to use austin's script, you can go into a blank mission and do it, move the .sqm to a temporary mission folder then merge your "full" mission with that temporary one, and that should transfer all the Zeus made/placed stuff over :D. No need to worry about deleting your current mission stuff. Share this post Link to post Share on other sites
Grumpy Old Man 3546 Posted December 5, 2014 Why not use the 3d editor? Working fine for placing objects etc. Share this post Link to post Share on other sites
Coolinator 10 Posted December 5, 2014 If your going to use austin's script, you can go into a blank mission and do it, move the .sqm to a temporary mission folder then merge your "full" mission with that temporary one, and that should transfer all the Zeus made/placed stuff over :D. No need to worry about deleting your current mission stuff. Thnx everyone for helping, i really appreciate it :) But I will go with Jshock's method :) but still dont know the controls lol. How do you drag the object up and down? Share this post Link to post Share on other sites
jshock 513 Posted December 5, 2014 Thnx everyone for helping, i really appreciate it :)But I will go with Jshock's method :) but still dont know the controls lol. How do you drag the object up and down? Try doing this :D. Share this post Link to post Share on other sites
Coolinator 10 Posted December 5, 2014 Try doing this :D. thnx :) i just figured it out, it's alt. It works the table was on the 2nd floor perfectly but the laptop keeps sinking on the table for some reason, i tried putting random numbers setpost code, no luck :/ I think im just gonna stick with regular plain editor, im okay with laptop on the floor, tried everything best as i can to put it perfectly on desk on 2nd floor building, but i just can't. :( Thanks for the help, i really appreciate it :) Share this post Link to post Share on other sites
Tajin 349 Posted December 5, 2014 If you need precise placement of objects, make sure you use getPosWorld and setPosWorld instead of the other get/setPos commands! Otherwise it can really be impossible to align them correctly. Share this post Link to post Share on other sites
Coolinator 10 Posted December 5, 2014 If you need precise placement of objects, make sure you use getPosWorld and setPosWorld instead of the other get/setPos commands!Otherwise it can really be impossible to align them correctly. I will try this :) Could you give me an example how to use it? I've never used it before. Share this post Link to post Share on other sites
Tajin 349 Posted December 5, 2014 They work the exact same way, only difference is that they're based off the model center (which shouldn't make a difference for you, unless you mix the world commands with the old ones) and they're not rounded which makes em more precise. Share this post Link to post Share on other sites
d787 10 Posted December 5, 2014 the laptop keeps sinking on the table for some reason I'm having this problem with the Camping Table too, seems like it has a hole in the middle that laptop falls through, I did this enableSimulation false; for the laptop and the table and it worked for me. I'm using MCC so you can add parameters on the fly while in Zeus mode. Share this post Link to post Share on other sites
spidypiet 17 Posted December 5, 2014 keep in mind in zeus or even with the get/set commands on small object placed on a desk it needs this enableSimulation false; in the objects init line ^^ D787 +1 Share this post Link to post Share on other sites
jshock 513 Posted December 5, 2014 Trial and error is also an amazing technique: http://i.imgur.com/EY1HHDW.jpg (114 kB) Example mission: https://www.dropbox.com/s/vmoh7ko5lxuqlfu/Laptop_Table_example.Stratis.7z?dl=0 Share this post Link to post Share on other sites
Jona33 51 Posted December 5, 2014 When placing units in buildings certainly I generally go for the simple solution which is to make the unit player, play the mission, position it where I want it and then put the following in the debug console _array=[getPosATL player,getDir player]; copyToClipboard (str (_array)); Then paste that into the units init field (easiest to see, putting it in notepad or somewhere else works fine) and then just dragging the unit into the right place (it's position is displayed at the bottom left of the editor). Then place the appropriate elevation in the box and the appropriate direction.Then delete the code from the init field. When putting laptops on tables (and similar) I generally use attachTo. For big setups I use MCC (with the Zeus editor) but usually only do that at the beginning of making a mission to save all the merging stuff. Share this post Link to post Share on other sites
Coolinator 10 Posted December 5, 2014 Trial and error is also an amazing technique:http://i.imgur.com/EY1HHDW.jpg (114 kB) Example mission: https://www.dropbox.com/s/vmoh7ko5lxuqlfu/Laptop_Table_example.Stratis.7z?dl=0 Tried to preview your example mission, it keep saying "warning fille read only" couldn't preview it :( Share this post Link to post Share on other sites
jshock 513 Posted December 5, 2014 Tried to preview your example mission, it keep saying "warning fille read only" couldn't preview it :( Weird, well here is just the mission.sqm file, just toss it in a .stratis folder: https://www.dropbox.com/s/0x1fxcm7vwedwds/mission.sqm?dl=0 Share this post Link to post Share on other sites
Coolinator 10 Posted December 5, 2014 (edited) Weird, well here is just the mission.sqm file, just toss it in a .stratis folder:https://www.dropbox.com/s/0x1fxcm7vwedwds/mission.sqm?dl=0 oh i already used enablesimulation, i don't know if u didn't see it my first post. Enablesimulation didn't work for me, it works only on first floor, but on second floor i have to use getpos/setpost (not precise enough, desk or laptop floats in the air). I even tried both enablesimulation and setpos/getpos code. Still didn'tt work for me :/ I want to try the modeltoworld code. Can someone give me an example of the modeltoworld code? im still not sure what's the proper coding for it :( Edited December 5, 2014 by Coolinator Share this post Link to post Share on other sites
jshock 513 Posted December 5, 2014 I just used the elevation setting in the editor object menu, it's close enough to exact for me, just took a minute to get all the right numbers: http://i.imgur.com/UVkqgWr.png (108 kB) Share this post Link to post Share on other sites
Coolinator 10 Posted December 5, 2014 I just used the elevation setting in the editor object menu, it's close enough to exact for me, just took a minute to get all the right numbers:http://i.imgur.com/UVkqgWr.png (108 kB) Ahhh okay! i will try to play with elevation setting :) ---------- Post added at 23:20 ---------- Previous post was at 23:09 ---------- Omg it works!!!!! im so happy!!! Thank you so much!!! and also thanks to everyone who tried to help! I really appreciate it!!! took me 3 days to put a desk and a laptop on 2nd floor precisely without floating or sinking. Finally! i couldn't done it without your guys help. I really appreciate it and thankful!!! :) Thank you so much!!!!!!!!! Share this post Link to post Share on other sites
Polygon 11 Posted December 6, 2014 Ahhh okay! i will try to play with elevation setting :)---------- Post added at 23:20 ---------- Previous post was at 23:09 ---------- Omg it works!!!!! im so happy!!! Thank you so much!!! and also thanks to everyone who tried to help! I really appreciate it!!! took me 3 days to put a desk and a laptop on 2nd floor precisely without floating or sinking. Finally! i couldn't done it without your guys help. I really appreciate it and thankful!!! :) Thank you so much!!!!!!!!! You simply used elevation parameter of the object? ;D Share this post Link to post Share on other sites
Coolinator 10 Posted December 6, 2014 You simply used elevation parameter of the object? ;D Yes lol :) with enablesimulationglobal code :) Share this post Link to post Share on other sites