View Single Post
  #6  
Old 09-23-2011, 11:26 AM
Mington Mington is offline
Approved Member
 
Join Date: Apr 2008
Posts: 29
Default

If information is good it does not matter where it is found, we will find it and pass on the word

A worked example may be the best way to start a tutorial for people like me who are interested in scripting (having recognised its power) and who know something about programming generally

We want to create the fire engine and ambulance and emergency equipment at an airfield

We want to detect a damaged plane incoming to land. Using an airfield radius perhaps, and as a damaged plane crosses the radius there is a trigger generated for our emergency vehicles to move from their parked positions to the runway to meet the plane

Not to start moving when a plane crash-lands, but to behave like real-world airfield emergency vehicles - preparing to meet any plane that seems as if it will need emergency vehicles

Now in any mission when any damaged plane crosses the AirfieldEmergency radius, emergency vehicles are sent to near the active runway. Mechanics swarm over the planes repairing re-fuelling and re-arming in future versions

Over at SimHQ I am attempting to coax a tutorial from people who have FMB information to share - the best information (for learners) will be found in step-by-little-step tutorials starting from the top

http://simhq.com/forum/ubbthreads.ph...ml#Post3387619

Here's how I would share info if I had any

I will make small test-stub scripts, there's a command to display onscreen

GamePlay.gpHUDLogCenter("Hello from Ming's world. Traditionally.");

-and if a trigger worked (here just a timer completing) I print onscreen

GamePlay.gpHUDLogCenter("Yes Ming that worked");

Now we can get feedback simply, just like in the old days

This helps enormously, to get a feel for the mission as a program with inputs and outputs - with hard-copy output

A Single mission with four planes, takeoff and land. As the second plane in the flight takes off print 'Second plane in the flight takes off' Wave(bye bye)

As the third plane is on finals print 'Third plane in flight now landing'

It's very difficult to explain to FMB-savvy people how they can help because they are interested in designing applications, while we of the Hood are interested in first-principles FMB - starting from the most basic 'Is It A Plane?' testing-scripts

Ming
Reply With Quote