Jump to content

AcidbRain

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by AcidbRain

  1. I'd recommend to use slothbot; with a few lines of code you can have an AI bot roaming on your map. PS: They won't race but they'll shoot at you.
  2. https://wiki.multitheftauto.com/wiki/ShowChat
  3. Thank you. GTA's distance unit is indeed equal to one meter (http://gta.wikia.com/Unit#GTA3.2C_GTAVC_.26_GTASA), I was just not aware of the 1/50 quirk.
  4. The actualspeed variable must still be multiplied by a factor greater than 1 in order to yield a useful value. However there's no conclusive argument on what exactly is the unit of the getElementVelocity value. On scripts available at the community site, I've seen people multiply it by 100, 160 or even by 200.
  5. Look at the order of the key and keyState parameters (https://wiki.multitheftauto.com/wiki/BindKey), you have to switch them on the calls to bindKey and unbindKey.
  6. Are you using a controller in analog mode?
  7. Try using the onMapStarting event by changing the first line to: addEventHandler( "onMapStarting", getRootElement( ),
  8. Both racepickup and checkpoint elements support the upgrades attribute, where you can define a comma-separated list of vehicle upgrade ids that should be applied when the player's vehicle hits them. The only catch is that if you have a single upgrade, you should add a dummy value so that it can be parsed as a table. Thus, if you want to add a nitro upgrade to a checkpoint, you set the attribute as: <checkpoint upgrades="1010,0" posX="...
  9. You can add more element types to move by editing first line: local ElementTypes = { "object", "pickup", "marker", "vehicle", "blip", "racepickup", "spawnpoint" } Here, "racepickup" and "spawnpoint" are used in race maps. If you have maps for other game modes, you'll have to add the element types that those game modes require.
  10. g_IsDestructionDerby = nil addEventHandler("onMapStarting", root, function(mapInfo, mapOptions, gameOptions) g_IsDestructionDerby = (mapInfo.modename == "Destruction derby") end )
  11. I still prefer download and no pictures than the other way round. Thanks!
  12. You need a map converter, see this one: https://forum.multitheftauto.com/viewtop ... 94&t=21794
  13. Yes, the parameters should be deltas, not final coordinates.
  14. See this thread: https://forum.multitheftauto.com/viewtop ... 94&t=27015
  15. To put it simply, they run your server on an overcrowded box and then blame the poor performance on YOUR resources.
  16. IIRC, if the objects are too far away from the original map, then the camera can move through them. Just place your map above the original map, and that will be fixed.
  17. Create a configurable option of it. Case closed.
  18. There is something wrong with his game, and for that matter, with anyone else's game; the race gamemode simply turns off collisions for any vehicle that's not being controlled by a player.
  19. I wish I could do that, I take months to finish even a simple map
  20. Same here, but the error message is different in a 1.0.4 server:
  21. I know you will be back, so here's what you should read: https://forum.multitheftauto.com/viewforum.php?f=94 and https://wiki.multitheftauto.com/wiki/Resource:Editor
  22. Console command parameters don't need to be separated by commas. A single space will suffice
  23. This script will only move objects from one place to another, as per OP request:
  24. Here's a basic mass move script: local ElementTypes = { "object", "pickup", "marker", "vehicle", "blip" } function batchMoveElements(elements, dx, dy, dz) for _,e in ipairs(elements) do local x, y, z = getElementPosition(e) x = x + dx y = y + dy z = z + dz setElementPosition(e, x, y, z) triggerEvent("syncProperty", root, "position", {x, y, z}, e) end end function consoleMoveObjects(playerSource, command, dx, dy, dz, elementTypes) dx, dy, dz = tonumber(dx) or 0, tonumber(dy) or 0, tonumber(dz) or 0 for _,elementType in pairs(ElementTypes) do if (elementTypes and elementType == elementTypes) or not elementTypes then local elements = getElementsByType(elementType) if elements then batchMoveElements(elements, dx, dy, dz) end end end end addCommandHandler("mmove", consoleMoveObjects) You just have to run this resource while editing your map, open up the console and type mmove x y z, where x, y, and z is the result of your guesswork.
  25. The link to the resource ( https://community.multitheftauto.com/index.html?p ... ils&id=540 ) brings up a page that says 'Invalid resource'
×
×
  • Create New...