home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
070.LIBRARY.DAT
< prev
next >
Wrap
Text File
|
1991-04-26
|
3KB
|
133 lines
'LIBRARY.DAT
'===========
'essentials as always
OUTPUT, test.sc1
INPUT, see03.sc1
DIR
'Having previously measured real FS north we notify SEE
'to help translate all the magnetic headings we will provide:
FSNORTH, 3.53
'first we must tell SEE where the library object is to be placed
'(this is the most direct way):
NORTH, 18400.0000
EAST, 18400
'now we tell SEE which library object we want:
LIBRARY, XmasTree.sc0
'and that's that.
'---------------------------
'there are other ways to tell SEE "where"
'say we want to put another xmas tree exactly half of an FS unit
'(256 meters per unit) northeast of the first one (don't ask me
'why). We can use the RELATIVE command:
RELATIVE, 45, 0.5
'the 45 is a heading (northeast) and the 0.5 is distance in FS units
'(REL would have worked just as well)
'Oh; yeah -- we didn't really care which way the first tree was facing
'but let's assume that with the second tree the orientation was
'important and should be at a 30 degree heading. We'd just tell SEE
'by saying:
HEADING, 30
'and then tell SEE which object (as usual):
LIB, XmasTree.sc0
'Note that LIB is short for LIBRARY.
'------------------------
'The normal visibility of a library object is 128 FS units; if we had
'wanted it shorter all we had to do was to tell SEE before the Library
'or LIB command:
RANGE, 3
'then the object would be visible only when you were very close to it
'(which is probably a very good thing to do with skidmarks).
'There are even more ways to tell SEE "where". From within ASD you
'can lay down an ILS whose position and heading represents the
'location and orientation of a library object you intend to place
'later.
'All you have to do is remember the frequency (make sure it is not a
'frequency you intend to really use) and use the REPLACE commmand:
REPLACE, ILS, 110.00, skid_l
'where the 110.00 is the frequency of the dummy ILS. SEE locates
'the ILS and substitutes the named library element (SC0 extension
'optional) at the same location and heading.
'Note that if the filename of the object ends in .SC0 we can leave it
'(the ending) off if we want.
'------------------------
'If FS units seem difficult to relate to when setting ranges
'we can use other units by:
UNITS, NM
'NM stands for nautical miles -- so the next range command will be
'interpreted as nautical miles:
RANGE, 1
'while we're at it we might as well try to use a timing gate as a
'graphical locating device. Just note the front color number of the
'gate and tell SEE:
REPLACE, GATE, 11, skid_l.sc0
'(#11 is light green)
'----------------------
'It's not really a part of this lesson but in order to make it
'easier to spot the island that the christmas trees will land on
'we should boost the range of visibility of that island:
'We know that the island is a polygon (Object-type code = 2)
'and that it is the 20th polygon (how do we know this?):
FIND, EXACT, 2, 20
'let's set it's visibility to 12 (non-nautical) miles:
UNITS,ML
SETRANGE,12
'----------------------
'one more touch:
N,18379.9753
E,18438.6696
HDG,36.89
Z,950
LIB, Kikiware
'enough for this lesson.
SAVE,END
Notes:
REPLACE, GATE, {color},{lib-object-name}
is equivalent to
GATE, {color}
LIBRARY, {lib-object-name}
and
REPLACE, ILS, {freq}, {lib-object-name}
is equivalent to
GUILS, {freq}
LIBRARY, {lib-object-name}