Page 1 of 1

CARGO_NOT_CARGO

Posted: Tue Mar 13, 2012 7:52 pm
by Smivs
Am I right in thinking that this shipdata entry

Code: Select all

"cargo_type" =  "CARGO_NOT_CARGO";
will cause ships to ignore any entity with this specified in shipdata?
The wiki entry says
CARGO_NOT_CARGO entity cannot be scooped.
but 'cannot' is not the same as 'will not' in the sense that an NPC will not see it as scoopable and will therefore ignore it, which is what I need.
The entity has scan_class = CLASS_CARGO;

Re: CARGO_NOT_CARGO

Posted: Tue Mar 13, 2012 9:14 pm
by Eric Walch
Smivs wrote:
Am I right in thinking that this shipdata entry ;
yes. Without this entry you'll start funny things like traders trying to scoop a derelict ship :roll:

The AI instruction scanForLoot will handle this correct. I have no idea how oxps like cargo shepherd will deal with it as the CARGO_NOT_CARGO status is not available to JS. Looking at cargo shepherd it looks like that will collect derelicts as it has no explicit check for not being hulk :P

Re: CARGO_NOT_CARGO

Posted: Tue Mar 13, 2012 9:17 pm
by Smivs
Good. Thanks for clearing that up.