Community Forum

Füllstände von onCreateObjcts auslesen

Forum Overview >> Scripting

Created19.06.2016 17:01

Kevin K. (kevink98) 19.06.2016 17:03

ich bin an einem Script dran, wo ich Füllstände von Gebäuden mit dem Fabrikscript auslesen will. Wie kann ich das am Besten machen? Hab es z.B. schon mal mit "loadFromAttributesAndNodes" probiert, bin aber zu keinem Ergebnis gekommen. Ich vermute, dass das Script garnicht ausgeführt wird.

Was mach ich den da falsch?

Vielen Dank im Voraus

Emil Drefers (Unknown) 20.06.2016 07:37

this forum uses the English language only.
Please respect that.


Kevin K. (kevink98) 20.06.2016 09:31
Hi Emil,

sorry. I try it in English.
At the moment I write a script, which should read the filllevel of onCreateObjects. What functions I need and where are save the fill level? I have the use the function load FromAttributeAndNotes, but I think the functions don't accomplished.

Emil Drefers (Unknown) 21.06.2016 07:37

first of all you have to make sure that your script is loaded and that the functions you are refering to are executed.

You are right, loadFromAttributesAndNodes should be the function which loads information from the .xml file.
In this case probably from the file "vehicles.xml", but it might be different for this mod - I'm just not sure what the mod does and how it does it.

Maybe it would be a good ide ato contact and ask the author of that mod directly, because he or she should know best what the mod does.


Note: Log in to post. Create a new account here.