Hi i scripted this gate script, and i dont know how to add this gate open for group in DayZ gamemode and if player is not in clan than in chat you are not in the clan name can somone help me with that.And and other problem is when the gate is lv u can open it in ls how to add distance open??
local gate = createObject ( 8378,1064.3000488281,1771,19.700000762939,0,0,0 )
local state = 0
function move()
if state == 0 then
moveObject ( gate,4000,1064.3000488281,1771.0999755859,40.099998474121)
state = state + 1
elseif state == 1 then
moveObject ( gate, 4000,1064.3000488281,1771,19.700000762939)
state = state - 1
end
end
addCommandHandler("gate", move )