V=Virtual ; K=include only objects that cannot attack; P=include only objects visible to source;
J= include only objects from a given sovereign ( which i learned earlier in another post);
and Z= exclude player from (sysFindObject);
However, I was looking for "R"
Code: Select all
sysFindObject gPlayerShip "GR -uncharted;"
being as this goes to the Kronosaurus and it would be hunting the player i thought it was a little strange if the ship is created as GR instead of G.
Code: Select all
(setq chrDeployKronosaurus (lambda ()
(if (not (typGetGlobalData &scCharonFrigateKronosaurus; "status"))
(block (kronosaurus)
; Create the Kronosaurus
(setq kronosaurus
(sysCreateShip
&scCharonFrigateKronosaurus;
(sysFindObject gPlayerShip "GR -uncharted;")
&svPirates;
)
)
; Order the Kronosaurus to attack the player
(objFireEvent kronosaurus "OrderHuntPlayer")
)
)
))