ST3REO Posted May 29, 2010 Share Posted May 29, 2010 could someone create me the code to move this object? id object : 3115 name object: CARRIER_LIFT1_SFSE down ->4060.9077148438 -1819.9403076172 29.235511779785 up->4060.9077148438 -1819.9403076172 346.60443115234 please I have already read a lot but I don't succeed there.if someone could create me the code please this object must stir only under and above, it is for a map race. Link to comment
loler Posted June 3, 2010 Share Posted June 3, 2010 Ah i maked a tuturoial : for moving objects: 1. when making a map, decide what objects you want to be moving 2. move object to desired location (like, if you want an elevator, move it to destination where it should go) and write down its id and position (x-y-z). 3. move your object back where it should start repeat steps 2-3 for all the objects you want to be dynamic 5. save your map when you finished 6. open .map file if you're using 1.0 mapeditor (or convert it if you're using race mapeditor and then open) 7. find your objects' entries (by id you wrote down for example), it should be like this: Code: <object id="testobject" model="3115" interior="0" dimension="0" posX="3446.6684570313" posY="-1914.6517333984" posZ="1.2000885009766" rotX="0" rotY="0" rotZ="0" /> 8. now add your desired parameters: isMoving="true" - to enable moving movTime="5000" - time to move object form one location to another, in msec (5 sec set here) restTime="1000" - time the object will stay at each location (1 sec set here) 9. and finally add the x-y-z location of end point you wrote down: movX="3446.6684570313" movY="-1914.6517333984" movZ="13.75008392334" and it should look like this: Code: <object id="testobject" model="3115" interior="0" dimension="0" posX="3446.6684570313" posY="-1914.6517333984" posZ="1.2000885009766" rotX="0" rotY="0" rotZ="0" isMoving="true" movTime="5000" restTime="1000" movX="3446.6684570313" movY="-1914.6517333984" movZ="13.75008392334" /> and you're done. Link to comment
dzek (varez) Posted June 3, 2010 Share Posted June 3, 2010 @loler, i never heard that mta support it natively i dont know where you find it, but you have to script it Link to comment
loler Posted June 3, 2010 Share Posted June 3, 2010 lol i maked it and i dont found it , i was mapper and I didnt know how to script that Link to comment
kevin11 Posted June 3, 2010 Share Posted June 3, 2010 k commands are up and down 5000 in line 3/7 stands for the speed (for slower go higher(5000+) and fast go lower (5000-)) 3115 in 1 line stands for the object u can change commands by editing this addCommandHandler("up", opendoor) addCommandHandler("down", opendoor) gate = createObject(3115,213.37258911133,1875.5131835938,7.0294618606567,90,0,0) function opendoor() moveObject (gate, 5000, 4060.9077148438,-1819.9403076172,29.235511779785 ) end addCommandHandler("up", opendoor) function closedoor() moveObject (gate, 5000, 4060.9077148438,-1819.9403076172,346.60443115234 ) end addCommandHandler("down", closedoor) yes people : ) im learning Link to comment
dzek (varez) Posted June 3, 2010 Share Posted June 3, 2010 loler, as you are new here - small advice. If you dont have anything useful to say-dont say anything. kevin, this is the script for opening closing gates,moving objects on command. Not automatically. And its not even by you ;p Link to comment
ST3REO Posted June 4, 2010 Author Share Posted June 4, 2010 could someone create me the code to move this object?id object : 3115 name object: CARRIER_LIFT1_SFSE down ->4060.9077148438 -1819.9403076172 29.235511779785 up->4060.9077148438 -1819.9403076172 346.60443115234 please I have already read a lot but I don't succeed there.if someone could create me the code please this object must stir only under and above, it is for a map race. you could create me the code to directly insert in.map? please I use mta he knows are 1.0.3 a problem? Link to comment
ST3REO Posted June 4, 2010 Author Share Posted June 4, 2010 Ah i maked a tuturoial :for moving objects: 1. when making a map, decide what objects you want to be moving 2. move object to desired location (like, if you want an elevator, move it to destination where it should go) and write down its id and position (x-y-z). 3. move your object back where it should start repeat steps 2-3 for all the objects you want to be dynamic 5. save your map when you finished 6. open .map file if you're using 1.0 mapeditor (or convert it if you're using race mapeditor and then open) 7. find your objects' entries (by id you wrote down for example), it should be like this: Code: <object id="testobject" model="3115" interior="0" dimension="0" posX="3446.6684570313" posY="-1914.6517333984" posZ="1.2000885009766" rotX="0" rotY="0" rotZ="0" /> 8. now add your desired parameters: isMoving="true" - to enable moving movTime="5000" - time to move object form one location to another, in msec (5 sec set here) restTime="1000" - time the object will stay at each location (1 sec set here) 9. and finally add the x-y-z location of end point you wrote down: movX="3446.6684570313" movY="-1914.6517333984" movZ="13.75008392334" and it should look like this: Code: <object id="testobject" model="3115" interior="0" dimension="0" posX="3446.6684570313" posY="-1914.6517333984" posZ="1.2000885009766" rotX="0" rotY="0" rotZ="0" isMoving="true" movTime="5000" restTime="1000" movX="3446.6684570313" movY="-1914.6517333984" movZ="13.75008392334" /> and you're done. I have already tried a lot of times so but it doesn't work HELPPPPPP Link to comment
dzek (varez) Posted June 4, 2010 Share Posted June 4, 2010 cause you need a script for it too.. Link to comment
ST3REO Posted June 4, 2010 Author Share Posted June 4, 2010 the object must get up and to lower only without any command.it is for a map race do you have a map with objects that stir so that to see the script? any map race that has an object that stirs.. please. Link to comment
dzek (varez) Posted June 4, 2010 Share Posted June 4, 2010 ill try to prepare it today for you. i have one, but a bit broken. after fix, i will publish to community, and share link here Link to comment
ST3REO Posted June 4, 2010 Author Share Posted June 4, 2010 ok thanks.if it is a problem to post here you can send me an email with the map. me if I see the script on a map I immediately understand ([email protected]) tnx4support Link to comment
ST3REO Posted June 6, 2010 Author Share Posted June 6, 2010 does nobody have a map / resonce with an object that stirs on and down? I pray you Link to comment
loler Posted June 6, 2010 Share Posted June 6, 2010 Yep , I have a map with objects that moves but i didnt release it ( its race map) Link to comment
dzek (varez) Posted June 6, 2010 Share Posted June 6, 2010 sorry,i forgot about you.. im preparing it right now Link to comment
dzek (varez) Posted June 6, 2010 Share Posted June 6, 2010 https://community.multitheftauto.com/index.html?p ... ils&id=809 Link to comment
ST3REO Posted June 7, 2010 Author Share Posted June 7, 2010 thanks friend, is now me everything clear. Link to comment
ST3REO Posted June 7, 2010 Author Share Posted June 7, 2010 look my job with you script https://www.youtube.com/watch?v=-gLut7oewmo Link to comment
dzek (varez) Posted June 7, 2010 Share Posted June 7, 2010 why there are 2 platforms? it should work this way? smashing cars? Link to comment
ST3REO Posted June 7, 2010 Author Share Posted June 7, 2010 a base serves for the cars and that that it stirs must destroy with this script I have understood a lot.thanks infinitely varez. 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