Blade2000 Posted January 31, 2012 Share Posted January 31, 2012 hey guyz .first sry for my bad english. I Never script before and i want to make a movement gate so plz help me if someone one enter my pc with teamviwer and make it to me Link to comment
Castillo Posted January 31, 2012 Share Posted January 31, 2012 There's a gate maker resource in the MTA community: https://community.multitheftauto.com/index.php?p= ... ils&id=614 Also a object movement generator: https://community.multitheftauto.com/index.php?p= ... ls&id=1224 Good luck. Link to comment
drk Posted January 31, 2012 Share Posted January 31, 2012 moveObject D: https://wiki.multitheftauto.com/wiki/moveObject Link to comment
Xeno Posted January 31, 2012 Share Posted January 31, 2012 bin = createObject(1337,0,0,5) -- Creating a dust din at the coods 0,0,0 function moveBin() local x,y,z = getElementPosition(bin) moveObject(bin,x+10,y,z) end addCommandHandler("move", moveBin) This script moves the bin at 0, 0, 0 by 10 meters. ( Not tested lol) Link to comment
Big Smoker Posted March 11, 2017 Share Posted March 11, 2017 Good night, I'm trying to create a gate script too but I want to make one that makes a mark and only opens the door when the player is inside ... when player enters inside the mark the gate opens and then it closes .. someone can help me? In case I want to do this for an elevator that I need to put on the map of my server ... and putting a gate by command is not going to work right there I need an automatic THANK YOU FROM ANOTHER Att ~Baido Link to comment
Moderators Citizen Posted March 11, 2017 Moderators Share Posted March 11, 2017 You will need : createObject to create the gate createMarker to create the 2 markers you will need onMarkerHit attached to the created markers (make sure to ignore the "vehicle" hitElement type to prevent triggering it twice if in vehicle) moveObject to open/close the gate setElementData / getElementData on the gate to save and toggle the state of the gate (if it's open or closed) 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