tnprvteye 10 Posted November 2, 2011 I've only messed around with the ARMA2 and TOH editor to do basic things (simple missions, no scripting). But I'm thinking about diving deeper. I'd like to create a scenario that randomly places traffic-accidents on the roads that require an EMS pickup. And yes, I'm another SimCopter veteran. Is there anyway to limit placement of objects to the road areas? If I could make a basic template of a few cars, police and emergency vehicles, and maybe some smoke, I could have them randomly show up in appropriate places. But I have no idea where to start. And then there's the whole issue of getting the patients to board the chopper, and so forth....then finding the nearest Hospital Pad. Man, maybe I'd better leave this to the experts... Share this post Link to post Share on other sites
loyalguard 15 Posted November 2, 2011 Here are a couple of threads from the A2 editing forum that may help you find road surfaces to place your objects: http://forums.bistudio.com/showthread.php?t=113719 http://forums.bistudio.com/showthread.php?t=98075 If you wanted a simpler approach, you could always choose several dozen of your own locations, put down markers, and then use the markers parameter of createUnit Array to choose one of the marker locations at random and place a game logic there. Then use the position of the logic to place the rest of your objects. It's a great mission concept...you should pursue it. Don't leave it to the experts...become one!!! Share this post Link to post Share on other sites
tnprvteye 10 Posted November 2, 2011 Okay, I did look into the scripting stuff, and I think part of my brain melted. Completely lost. Where do I even type these scripts in? Man, I'm such a noob. Share this post Link to post Share on other sites
loyalguard 15 Posted November 2, 2011 Ok, Below are some links to get you familiar with some scripting basics. They for ArmA but the same principles should apply for TOH. http://community.bistudio.com/wiki/Category:Scripting_Topics http://community.bistudio.com/wiki/ArmA:_Scripting_-_Getting_Started http://community.bistudio.com/wiki/ArmA:_Introduction_to_Scripting Before writing any code, map out your mission concept OR more specifically: 1. When/how do you want your traffic accidents to happen: On mission start, after a certain period of time, more than one possible at same time, only if player asks for one to "respond to". 2. What will prompt the player to respond. Chat messages, hints, Radio message, etc? 3. What do you want to happen when the player responds? You will probably need a single script file just to create your accidents. You will probably need another script to resolve each of your accidents as well (board chopper or whatever you want to happen). A script file is just a text document with .sqf at the end You have a great community here to help you work on your mission Share this post Link to post Share on other sites
tnprvteye 10 Posted November 2, 2011 Excellent, thank you very much. Gotta a few days off from work finally so I think I'll get to some readin' :D Share this post Link to post Share on other sites