Chicken0895 Posted April 25, 2011 Share Posted April 25, 2011 I am using MTA San Andreas. I want to make an underground car park under Verona Beach. However, when use the map editor to put a ramp going underground the ground gets in the way and does not let me in. Is there a way to fix this? Also, is there a way to put garage doors that do up and down like in some of the default safe houses? Link to comment
Oz. Posted April 25, 2011 Share Posted April 25, 2011 The only way to fix your underground car park problem is to edit the object your ramp (leading to the car park) is passing through, i.e. edit the section of ground. If you're reasonably confident and capable with 3D modelling, you'd be able to edit the DFF and COL to create a hole in the ground through which your ramp could pass. MTA's Map Editor can only spawn and position existing map objects, it can't actually edit those map objects. You'd also need some basic scripting ability to force the replacement of the original DFF and COL with your own edited one. It is possible to create moving garage doors using LUA scripts, but you might be better off looking for advice on that in the Scripting section of these forums. Or starting off by yourself on: https://wiki.multitheftauto.com/wiki/Scr ... troduction It's possible that there are freely-available community resources to satisfy the object replacement and moving garage doors, you can search here and see if any exist. Link to comment
Chicken0895 Posted April 26, 2011 Author Share Posted April 26, 2011 The only way to fix your underground car park problem is to edit the object your ramp (leading to the car park) is passing through, i.e. edit the section of ground. If you're reasonably confident and capable with 3D modelling, you'd be able to edit the DFF and COL to create a hole in the ground through which your ramp could pass. MTA's Map Editor can only spawn and position existing map objects, it can't actually edit those map objects. You'd also need some basic scripting ability to force the replacement of the original DFF and COL with your own edited one.It is possible to create moving garage doors using LUA scripts, but you might be better off looking for advice on that in the Scripting section of these forums. Or starting off by yourself on: https://wiki.multitheftauto.com/wiki/Scr ... troduction It's possible that there are freely-available community resources to satisfy the object replacement and moving garage doors, you can search here and see if any exist. First, thanks for the quick response. Second, to do that, wouldn't I need to replace a default object? The editor cannot do that. Link to comment
Oz. Posted April 26, 2011 Share Posted April 26, 2011 Indeed, as I said, you would need some scripting knowledge to replace the object using LUA (and some modelling knowledge to create a new DFF/COL). It is possible to have that replacement script running while in Map Editor, so that you can position your other objects (like the ramp) correctly. Thus it isn't Map Editor that is replacing a default object, it'd be the LUA script. Link to comment
Chicken0895 Posted April 26, 2011 Author Share Posted April 26, 2011 Indeed, as I said, you would need some scripting knowledge to replace the object using LUA (and some modelling knowledge to create a new DFF/COL). It is possible to have that replacement script running while in Map Editor, so that you can position your other objects (like the ramp) correctly. Thus it isn't Map Editor that is replacing a default object, it'd be the LUA script. Ok, then one last thing. Will this work if I export the map for use in an sa-mp sever that is not mine (they accept maps, and I already know how to export it, so I dont need help with that)? BTW, thanks a lot for your help Link to comment
Oz. Posted April 26, 2011 Share Posted April 26, 2011 No, SAMP does not use LUA, it uses a far inferior scripting language called PAWN or something, so scripts are not interoperable. There might be a way of converting LUA to PAWN, but I'm not sure if SAMP has functionality to force object replacement by scripting. SAMP has a far more limited selection of server/client side functions and commands than MTA, so it may not be possible. You might be better off asking about that on the SAMP forums, if your plan is to use it in that game. Link to comment
Chicken0895 Posted April 27, 2011 Author Share Posted April 27, 2011 No, SAMP does not use LUA, it uses a far inferior scripting language called PAWN or something, so scripts are not interoperable. There might be a way of converting LUA to PAWN, but I'm not sure if SAMP has functionality to force object replacement by scripting. SAMP has a far more limited selection of server/client side functions and commands than MTA, so it may not be possible. You might be better off asking about that on the SAMP forums, if your plan is to use it in that game. Ok, I will ask there. Thanks again for your help. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now