Merad 10 Posted June 30, 2009 In the town of Vybor I want to spawn a truck. I'd like to spawn the truck in one of three spots. (Rather than putting the truck anywhere, I want the truck to appear in one of three specific spots.) Whats the best way to do this in game for a truck named MS1? Have three trucks (MS1,MS2,MS3) and deactivate them if one spawns? Share this post Link to post Share on other sites
dmarkwick 261 Posted June 30, 2009 Randomise a number between 0 and 2 and use a Switch do conditional to decide. Share this post Link to post Share on other sites
Merad 10 Posted July 1, 2009 Ok so lets give this a whirl. HT=(random 3)switch (HT) do {case 1: {deleteVehicle [MT1,MT2]}; case 2: {deleteVehicle [MT3,MT2]}; default {deleteVehicle [MT1,MT3]};} Share this post Link to post Share on other sites
jamesf1 0 Posted July 1, 2009 If the truck is editor-placed, then place it at the first position, and place two 'Empty' markers at the other two places, and then group the truck with those markers. The truck will appear at one of the three locations, randomly. Share this post Link to post Share on other sites
Merad 10 Posted July 1, 2009 (edited) If the truck is editor-placed, then place it at the first position, and place two 'Empty' markers at the other two places, and then group the truck with those markers. The truck will appear at one of the three locations, randomly. Huh. That's stupidly simple. How do you group them though? When I go to group the markers go away. Edited July 1, 2009 by Merad Share this post Link to post Share on other sites
jamesf1 0 Posted July 1, 2009 Just 'remember' where the markers are, and group using F2 (I forget if there's a simpler way). They'll stay grouped, even if the markers aren't showing :) Share this post Link to post Share on other sites
Merad 10 Posted July 1, 2009 I'm giving that a go but no joy so far. Lets see if I can be more precise. [edit yeah, you find them by mousing over. Bit like hidden pictures.] Share this post Link to post Share on other sites