View Full Version : New to mission editing...couple of ideas
Nov 2 2011, 14:35
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...
Nov 2 2011, 15:02
Here are a couple of threads from the A2 editing forum that may help you find road surfaces to place your objects:
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 (http://community.bistudio.com/wiki/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!!!
Nov 2 2011, 18:47
Okay, I did look into the scripting stuff, and I think part of my brain melted.
Where do I even type these scripts in?
Man, I'm such a noob.
Nov 2 2011, 19:17
Ok, Below are some links to get you familiar with some scripting basics. They for ArmA but the same principles should apply for TOH.
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
Nov 2 2011, 21:46
Excellent, thank you very much. Gotta a few days off from work finally so I think I'll get to some readin' :D
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.