Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Field Researcher
Original Poster
#1 Old 25th Jun 2020 at 2:02 AM
Default Function to Check if Object is Installed?
Full use case: I've been mucking about with crafting stations recently, and I'm worried about silly future-self removing an object that's supposed to be created by the crafting station, and that causing errors. Or even, I thinking about future self, and how I might want to be able to remove packages without having to re-mod a set of objects.

Is there a function to check if an object/package exists/is installed? (Presumably by guid)
I could see this maybe being a bit of an ask as far as searching goes, should this be done in guardian bhavs, or would it be wiser to run all the checks once when the object is loaded and store the results? Or some other third option...?
Advertisement
Scholar
#2 Old 25th Jun 2020 at 6:05 AM
[prim 0x0020] Test Object Type (Stack Object ID 0x0000,
is instance of: GUID 0x008BB2C0,
checking original (not current) GUID: False,
incoming ID is a neighbor ID: False,
return GUID selected in Temp 0,1: True)

Make sure you set 'return found Object in Temp 0,1'. Will return true if an item by GUID 0x008BB2C0 is available to the game or false if it isn't, will leave the current object Id as is so it is easy to use.
Field Researcher
Original Poster
#3 Old 25th Jun 2020 at 8:13 AM
Quote: Originally posted by Chris Hatch
[prim 0x0020] Test Object Type (Stack Object ID 0x0000,
is instance of: GUID 0x008BB2C0,
checking original (not current) GUID: False,
incoming ID is a neighbor ID: False,
return GUID selected in Temp 0,1: True)

Make sure you set 'return found Object in Temp 0,1'. Will return true if an item by GUID 0x008BB2C0 is available to the game or false if it isn't, will leave the current object Id as is so it is easy to use.

Perfect. Thanks so much.
Back to top