DarKneSS29 Posted March 11, 2013 Share Posted March 11, 2013 I need a script gate.For CTA of course but i want with this command /go1 to open and /gc1 to close.Tell me where i put x ,y ,z, rx, ry, rz.Sorry my english. Link to comment
PaiN^ Posted March 11, 2013 Share Posted March 11, 2013 Use these functions : createObject addCommandHandler moveObject Link to comment
DarKneSS29 Posted March 11, 2013 Author Share Posted March 11, 2013 Please put some model please Link to comment
DarKneSS29 Posted March 11, 2013 Author Share Posted March 11, 2013 (edited) gate=1 createObject(980,551.5, 1659.300488281,8.8000001907349,0, 0, 121.99768066406)addCommandHandler("/gc1",close)function close endaddCommandHandler("/go1",open)function open moveObject(gate1,5000,551.59997558594, 165.1999511719, 14.30000190735 ) THis is good Edited March 11, 2013 by Guest Link to comment
iPrestege Posted March 11, 2013 Share Posted March 11, 2013 I'm sure that this will help you ( ; https://forum.multitheftauto.com/viewtopic.php?f=148&t=53694 Link to comment
Sasu Posted March 11, 2013 Share Posted March 11, 2013 gate = createObject(980, 551.5, 1659.300488281, 8.8000001907349, 0, 0, 121.99768066406) function gateOpen() moveObject( gate, 2000, 551.59997558594, 165.1999511719, 14.30000190735 ) end addCommandHandler("go1", gateOpen)--Command /go1 to open gate function gateClose() moveObject( gate, 2000, 551.59997558594, 165.1999511719, 14.30000190735 ) end addCommandHandler("gc1", gateClose)--Command /gc1 to close gate Link to comment
DarKneSS29 Posted March 12, 2013 Author Share Posted March 12, 2013 You are the best. 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