I've got a script and it works but if I want to do the same but I'll put a 1 behind so I got this in the first: openMyGate and this in the 2: 1 openMyGate1 then he opens not with the first command but he opened it with two commands are really
Help me please
function createTheGate ()
myGate = createObject ( 969, 209.0489654541, 1875.4265136719, 12.140625 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
function openMyGate ( )
moveObject ( myGate, 3000, 200.65399169922, 1875.3364257813, 12.140625 )
end
addCommandHandler("open",openMyGate)
function movingMyGateBack ()
moveObject ( myGate, 3000, 209.0489654541, 1875.4265136719 + 0, 12.140625 )
end
addCommandHandler("close",movingMyGateBack)
function createTheGate1 ()
myGate = createObject ( 3109, 226.6572265625, 1858.30859375, 14.64695930481 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 )
function openMyGate1 ()
moveObject ( myGate, 3000, 226.6572265625, 1858.30859375, 11.64695930481 )
end
addCommandHandler("deur",openMyGate1)
function movingMyGateBack1 ()
moveObject ( myGate, 3000, 226.6572265625, 1858.30859375, 14.64695930481 )
end
addCommandHandler("deur1",movingMyGateBack1)
what am I doing wrong