Category | Scripting |
Created | 20.03.2015 10:24 |
Bilbo Beutlin (BBeutlin) | 20.03.2015 10:24 |
---|---|
How can I safely test an object ID? A mission object (transportPallet) will be deleted at mission end. Test with "getParent(objectID)" then gives a call stack error. I tried with "g_currentMission:getNodeObject(objectID)", but this gives also nil for some attached/joint objects. Is there a simple check like eg. "exists(objectID)" ? |
Emil Drefers (Unknown) | 20.03.2015 14:41 |
---|---|
Hi, you could try to use: entityExists(objectId) Cheers, Emil |
Bilbo Beutlin (BBeutlin) | 20.03.2015 16:20 |
---|---|
Wonderful! - seems just the right for what I've searched. However I must still test all appearing cases. But honestly: why aren't such essential things documented (eg. api reference)? Thanks |
Bilbo Beutlin (BBeutlin) | 20.03.2015 20:44 |
---|---|
hmm .. doesn't work here (FS13) Also unknown method in "g_currentMission" Is it perhaps for the FS15? |
Emil Drefers (Unknown) | 23.03.2015 09:06 |
---|---|
Hi, yes, this command only works in FS15. Cheers, Emil |
Bilbo Beutlin (BBeutlin) | 23.03.2015 15:40 |
---|---|
Any ideas for FS13? Or must I really scan all IDs up from root for validation? |
Jamie Wagner (Unknown) | 27.03.2015 19:43 |
---|---|
how can i get an object to be placeable as to be able to buy in store rather than installing with ge i dont have the ideas of what to do with using the ge to complexed for me |
Note: Log in to post. Create a new account here.