Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Phoenix

Registered:
Posts: 2
Reply with quote  #1 
Hi all.
Writing my first mission using the mission editor and I've ran into a problem.
Is there a way to do an if_distance between the player ship and a fixed point (i.e. a co-ordinate) rather then another object ?
I looked on the wiki and that would seem to suggest you can use pointx/y/z="00000" as arguements but either I'm getting the syntax wrong or it doesn't work.
Can anyone help ? Thanks in advance.
leaola

Registered:
Posts: 268
Reply with quote  #2 
I think u can make a mesh object at the point and make it reallllllly small so no one can see it. I know in the artemis editor I created a script that creates an object a "x", "y","z" were x,y,z are 'strings' with random values and the editor wants #'s and tells me it wont work but when playing it does, so whats telling u it wont work the editor or the game?
Arrew

Avatar / Picture

Registered:
Posts: 2,750
Reply with quote  #3 
Use the if it is inside or outside sphere command. That should do what you want. Just set the size of the sphere to the distance you want.
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #4 
Yes, the inside sphere command is intended to check the distance between a named object and a fixed point in the sector. It does exactly what you need.
__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
Phoenix

Registered:
Posts: 2
Reply with quote  #5 
Yeah - sod's law, about an hour after posting this I figured I could use the sphere command [tongue]

Ta for replying anyway.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.