Author Topic: Noob question for is-nav-visited usage  (Read 1527 times)

0 Members and 1 Guest are viewing this topic.

Noob question for is-nav-visited usage
Sorry for being a complete noob, but I'm new to FRED2 (well fred2_open)

I'm trying to create a mission, part of which involves the player making a patrol.  Approaching an individual ship works fine, but for flying to a cargo depot I'm trying to use a navigational waypoint.

I have a waypoint called "Nav Depot", placed between some cargo containers.  My events have a is-nav-visited operator which (as I understand) should be trigered when the player comes within 1000m of the point.

Since this does not work, am I to assume that I'm using is-nav-visited wrong.  And can anyone suggest a better approach to use?

 
Re: Noob question for is-nav-visited usage
Problem partially solved.  I should have been Nav Depot:1

But the one I can't figure out is how to apply the same operator to a jump node  :confused:

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Noob question for is-nav-visited usage
Just a warning. Nav points and waypoints are two different things. Do not mix up the terms or you'll cause a fair deal of confusion. A waypoint is placed in FRED and is completely invisible in-game. It's mainly used for AI goals and for distance checks like the one you wanted.

Nav points are an SCP addition and can be visible in-game. You can create a nav point using a waypoint (which is the source of much confusion between the two). Nav points are used for visual markers in-game and are a large part of the autopilot system.


For a jump node what you want to do is use a waypoint and distance check based on that. The question comes up often enough that I put it in my FAQ here.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: Noob question for is-nav-visited usage
Thanks karajorma  :) So how do I create a nav point out of a waypoint?

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Noob question for is-nav-visited usage
From what you wrote it sounds like you've already done it. The add-nav-waypoint SEXP allows you to turn attach a nav point to an existing waypoint.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: Noob question for is-nav-visited usage
That did the trick, thanks!  :D