Jump to content

Doubt to open the gate. I have the picture of the coordinate


ander17

Recommended Posts

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

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...