Code: Select all
_G.dummyID=Spring.CreateUnit("dummy_land", x, y, z, "south", gaiaTeamID);
Code: Select all
Spring.Echo("dummy has ID: ", _G.dummyID);
Moderator: Moderators
Code: Select all
_G.dummyID=Spring.CreateUnit("dummy_land", x, y, z, "south", gaiaTeamID);
Code: Select all
Spring.Echo("dummy has ID: ", _G.dummyID);
-> you did a logic error. how lua synced/unsynced works is explained on http://answers.springlobby.info/questions/Pithikos wrote:...in the synced part of the gadget
...in the unsynced part...
Did a search there too for "globals synced", "globals unsynced", "synced unsynced" but got 0 results.jK wrote:k didn't saw this-> you did a logic error. how lua synced/unsynced works is explained on http://answers.springlobby.info/questions/Pithikos wrote:...in the synced part of the gadget
...in the unsynced part...
again wrongPithikos wrote:I use SetGameRulesParam() though there is null documentation in the wiki about it(at least from what I searched).
http://springrts.com/wiki/Lua_System#Synced_2jK wrote:again wrongPithikos wrote:I use SetGameRulesParam() though there is null documentation in the wiki about it(at least from what I searched).
Well seems to me that the function is in the wrong place. The Spring.GetGameRulesParam is in SyncedRead so I would expect Spring.SetGameRulesParam to be in SyncedCtrl. No idea what this "System Lua" is supposed to represent. A few words would not hurt whoever did it.FLOZi wrote:http://springrts.com/wiki/Lua_System#Synced_2jK wrote:again wrongPithikos wrote:I use SetGameRulesParam() though there is null documentation in the wiki about it(at least from what I searched).