ZZEZ 10 Posted February 20, 2011 Hey. I'm working on my mission, its basiclly capturing 4 HVTs and obtaining a briefcase. How do I make the HVTs spawn in pre-defined positions randomly?theres a catch to that - only 1 HVT per location and if possible I want briefing picture to change based on who the HVT is[hvt1, hvt2, hvt3, hvt4], I took pictures of their faces for the briefing, I want the map marker to change according to their position but without it tailing them throughout the mission. Also, is there a way to have the mission randomly decide if the HVT is armed or not and then accordingly have objective complete if you kill him but failed if he is unarmed and you kill him? Please help a confused newbie, I searched quiet abit but I found nothing. Share this post Link to post Share on other sites
lozz08 10 Posted February 20, 2011 empty>game logics> start position type game logic place those everywhere you want a start position to be. then place a normal game logic object in the middle of the map. Put this in its init: markerlist = this nearobjects ["LocationLogicStart", 10000];nul = [] execvm "start.sqf"; this will make an array with all the start type game logics in it, and call a script called start.sqf in your mission folder. Now, in that script, you can select a random starting position out of the array by doing this: _marker = markerlist select (round(random count markerlist)) If you want to remove that marker from the random array after using it, you do this: markerlist = markerlist - [_marker]; You should be able to figure it out from there. Share this post Link to post Share on other sites