ramzi Posted November 6, 2013 Posted November 6, 2013 i just want a gate in sf army base which opens with skin 287.so plz help me
Castillo Posted November 6, 2013 Posted November 6, 2013 You need to use the following functions: Functions: createObject -- To create the gate object. moveObject -- To move the gate. getElementModel -- To check if the skin is 287. createColTube -- To create a colshape so it opens the gate when you hit it. Event: onColShapeHit
ramzi Posted November 7, 2013 Author Posted November 7, 2013 the problem is i don't know how?so i asked for a gate
Price. Posted November 7, 2013 Posted November 7, 2013 its from anothr topic just replace those coordinates. if AdminGate then destroyElement ( AdminGate ) end local AdminGate = createObject ( 971, -504.7998046875, 2592.599609375, 56.200000762939, 0, 0, 90 ) local state = 0 --this is the state, if 0 gate closed if 1 it's open function move() if state == 0 then --it's closed so open it moveObject ( AdminGate, 2500, -504.79998779297, 2592.6000976563, 62.099998474121) --Time means how fast the object'ill be moved. state = state + 1 elseif state == 1 then --it's open so close it moveObject ( AdminGate, 2500, -504.7998046875, 2592.599609375, 56.200000762939) state = state - 1 end end addCommandHandler("admin75", move )--this one creates a command "/gate" wich'll start the move function
ramzi Posted November 12, 2013 Author Posted November 12, 2013 ah sorry but i want a link for a gtae.so thank you for ur help.cuaz i don't know how to do it
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