Home   Help Search Login Register  

Author Topic: Contour following triggers  (Read 667 times)

0 Members and 2 Guests are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Contour following triggers
« on: 04 Feb 2005, 03:24:39 »
We all know about triggers right? if not then turn off your computer and go to your room, on the way, tell your mum that you don't deserve afters tonight.

I was wondering if its possible to create a marker that can map the terrain. An example would be if you wanted a trigger to fire when you left the water. You could leave the water at any point along a stretch of coast. A conventional trigger would, as we know, miss out bits of transitional land/sea as the coast meandered along. With the mapping trigger it would follow the coast all the way along so no matter where you left the water it would fire. You get me?

All I want to know is, is it possible?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Contour following triggers
« Reply #1 on: 04 Feb 2005, 04:50:55 »
basically you would have to make a bunch of reference points along the coast

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Contour following triggers
« Reply #2 on: 04 Feb 2005, 21:48:01 »
You could use an ASL function to detect the Above Sea Level altitude (you can find one in the editor depot, in the function library).  YOu can then compare the AGL alt (given by getPos vehicle select 2).  If the difference between the AGL and ASL goes much above, say 5 m you know you have gone inland from the cost, if it is below 1 m you know you have gone out to sea.  You would need a gamelogic to track the ground below the craft.  You could also use the NOEalt function I wrote.  It is desinged to force Nap of Earth flight on AI vehicles, but it could be adapted to help keep on the cost (it allows you to detect the gradiant of the terrain in any direction from a vehicle).  I am attaching this function since I have not yet I submited it to the function library.

DBR_ONIX

  • Guest
Re:Contour following triggers
« Reply #3 on: 09 Mar 2005, 23:36:29 »
Hmm, the CoC tomawaks and the new (not released?) Tomahawk addon have scripts that do exactly that (Make's waypoints that follow low ground)..
Impressive looking to say the least.. Never tried the scripts on their own.. I think they have been repeased (The scripts)
- Ben