Category | Farming Simulator 2009 |
Created | 04.08.2009 18:10 |
Heady Planet-ls (Headshot XXL) | 04.08.2009 18:15 |
---|---|
Hello, what is the code to load a mod over moddesc.xml? sry, i have found the code: function BaseMission:loadVehicle(filename, x, yOffset, z, yRot) |
Heady Planet-ls (Headshot XXL) | 05.08.2009 11:11 |
---|---|
another: what is the code for remove / sell a vehicle? edit: with the code: for i=1, table.getn(g_currentMission.vehicles) do local vehicle = g_currentMission.vehicles[i]; local vehicleRootNode = g_currentMission.vehicles[i].rootNode; if self.palettId == vehicleRootNode then vehicle:delete(); end; end; I get a lua error: Lua: Unknown entity id: 29697 method name: getWorldTranslation Callstack: dataS/scripts/vehicles/Vehicle.lua@679 (getWorldTranslation) dataS/scripts/BaseMission.lua@725 (update) dataS/missions/mission00.lua@280 (update) dataS/scripts/main.lua@314 (update) Error running lua function: update [string "dataS/scripts/vehicles/Vehicle.lua"]:683: attempt to perform arithmetic on local 'newX' (a nil value) |
Manuel Leithner - GIANTS Software | 08.08.2009 19:47 |
---|---|
try to use g_currentMission:removeVehicle(vehicle); |
Note: Log in to post. Create a new account here.