Community Forum

Namespace Members

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created22.06.2009 12:58


Andreas Großschedl (unknown) 22.06.2009 13:01
How can i find out all members of the self namespace (like self.rootNode) or of the g_currentMission (like how to add money...)? Some of them i can find at different mods but i often don't know parameters of functions...

Stefan Geiger - GIANTS Software 22.06.2009 15:24
There is no list of these functions yet, however I heard there will be a short list of the most important functions/variables on ls-mods.de soon.

Until then you can use the code

for k,v in pairs(theNamespace) do
print(tostring(k).."("..type(v)..") = "..tostring(v))
end;

Replace theNamespace by your namespace you want to explore (self, g_currentMission...).
It does not print the function arguments, but it still should be some help.

Andreas Großschedl (unknown) 22.06.2009 17:36
Thank you!

Claudio Accotardi (unknown) 01.07.2009 21:48
Hi Mr. Geiger,
Is possible print to file the results of function.
Thanks in advance
Best regards


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