ander17 Posted November 21, 2011 Share Posted November 21, 2011 Solidarity someone please help me in a script. I want to open the gates of a (secret base) that I did. The right "script" is that you type this command opens the gate. Sorry for my bad english Link to comment
mjau Posted November 21, 2011 Share Posted November 21, 2011 images dont work for me give me the cordinates in text here and i will make the gate script for you Link to comment
ander17 Posted November 21, 2011 Author Share Posted November 21, 2011 model: 3095 position: gate open: x: 110.80000305176 y: 1055.8000488281 z: 15 rotation: x: 0 y: 270 y: 183.98254394531 gate closed: x: 110.80000305176 y: 1055.8000488281 z: 16.700000762939 rotation: x: 0 y: 270 z: 183.98254394531 gate 2: closed model: 2951 x:110 y:1071.599609375 z:12.60000038147 rotation: x:0 y:0 z:91.99951171875 gate2 open: x:110 y:1071.5999755859 z:16.60000038147 rotation: x:0 y:0 z:91.99951171875 Link to comment
Jaysds1 Posted November 22, 2011 Share Posted November 22, 2011 There's options to opening the gate, 1. it opens if someone enters an area 2. it opens if someone types in an command 3. it opens to only one person 4. it opens or a team or group If you want it to open for the person that entered an area, you have to use: createColRectangle createColSphere -- etc... if you want it to open for the person that typed in a command, use: addCommandHandler("gate1",open) function open(player,command) --script here end if you want it to open for a person or a team/group, then you could use the example above about the colshape. Link to comment
tosfera Posted November 22, 2011 Share Posted November 22, 2011 Tell me, does it have to open with a skin, a team, a player name or with something else? I will write it for you. - Tosfera Link to comment
ander17 Posted November 22, 2011 Author Share Posted November 22, 2011 Friends I want is the following "open for commands" I have already given the coordinates can do it for me? Link to comment
mjau Posted November 22, 2011 Share Posted November 22, 2011 gate1 = createObject ( 3095, 110.80000305176, 1055.8000488281, 16.700000762939, 0, 270, 183.98254394531 ) gate2 = createObject ( 2951, 110, 1071.599609375, 12.60000038147, 0, 0, 91.99951171875 ) function opengate1() moveObject (gate1, 2000, 110.80000305176, 1055.8000488281, 15) end addCommandHandler("open1", opengate1) function closegate1() moveObject (gate1, 2000, 110.80000305176, 1055.8000488281, 16.700000762939) end addCommandHandler("close1", closegate1) function opengate2() moveObject (gate2, 2000, 110.80000305176, 1055.8000488281, 15) end addCommandHandler("open2", opengate2) function closegate2() moveObject (gate2, 2000, 110, 1071.599609375, 16.60000038147) end addCommandHandler("close2", closegate2) try this commands are :/open1 /open2 /close1 /close2 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