tophe 69 Posted February 22, 2007 I have a map I want to place inside a factory. The map should be in different places every time the mission is started. Does anyone have any good ideas for that? My idea was to place game logics in 5 different places. Have a variable between 0 and 5 and have each number representing a game logic. Then have the map moved to the position of the chosen game logic. This is VERY bulky to get nice and clean. Especially since game logics are a pain in the ass to work with in small areas due to the huge icons they have. Any ideas? Share this post Link to post Share on other sites
charonos 0 Posted February 22, 2007 So can you portray the reason more clearly why actually you want to use game logics? Also you will have to use absolute positions anyway because of the roadway setpos-problem in houses, why not just store them into a 5-element position-array like <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _posarray= [ [_x1,_y1,_z1] , [_x2,_y2,_z2] , [_x3,_y3,_z3], [_x4,_y4,_z4] , [_x5,_y5,_z5]] Share this post Link to post Share on other sites
tophe 69 Posted February 22, 2007 I am happy for any sollution that keeps me away from using game logics. I am rather new at editing and scripting so.. If you have the time do you think you could elaborate the idea? I have an object named "map" that wil be positioned at one of 6 places inside the building. Should I get five positions down into numbers and then enter them in that array? Like this... _posarray= [ [23,44,5] , [67,45,8] , and so on... And then have a ranomizer pick which one of the positions to use for the object? Am I out of line? Could you more specifically give a tiny example of how to use this idea of yours? Thank you for you help. Regards Tophe. Share this post Link to post Share on other sites
dr_eyeball 16 Posted February 23, 2007 I think I've found the solution to your problem (and mine). Check the command buildingPos: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">building buildingPos index; - or - buildingPos [building, index]; I'm just finishing off a script now which should randomly populate a town with the AI inside all the local buildings, which should be cool. Still need to deal with collisions. You could combine that with the UPS script and it would be great. Share this post Link to post Share on other sites
tophe 69 Posted February 23, 2007 Amazing! I'll have to try that tonight! Thank you! I'll let you know what I find. Share this post Link to post Share on other sites
tophe 69 Posted February 23, 2007 WOHOOO! It worked. *** EDIT *** I made a simple tutorial for the command at this thread: http://www.flashpoint1985.com/cgi-bin....1;top Share this post Link to post Share on other sites