CARGO_NOT_CARGO

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

CARGO_NOT_CARGO

Post 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;
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: CARGO_NOT_CARGO

Post 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
Last edited by Eric Walch on Tue Mar 13, 2012 9:25 pm, edited 1 time in total.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: CARGO_NOT_CARGO

Post by Smivs »

Good. Thanks for clearing that up.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Post Reply