Results 1 to 5 of 5

Thread: New to mission editing...couple of ideas

  1. #1

    New to mission editing...couple of ideas

    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...

  2. #2
    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!!!
    LoyalGuard
    Former OFPEC Editors Staff Member | Former ACE1 Dev Team Member
    My ArmA Projects
    "...brain-hurting expressions of realism like Loyalguard’s functioning Chernarus Electrical Grid." -PC Gamer

  3. #3
    Private First Class
    Join Date
    Jun 22 2011
    Posts
    27
    Author of the Thread
    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.

  4. #4
    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/C...ripting_Topics

    http://community.bistudio.com/wiki/A...etting_Started

    http://community.bistudio.com/wiki/A...n_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

  5. #5
    Private First Class
    Join Date
    Jun 22 2011
    Posts
    27
    Author of the Thread
    Excellent, thank you very much. Gotta a few days off from work finally so I think I'll get to some readin'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •