Door1 = createObject(980,2493.3000488281,-1681.5,15.10000038147,0,0,0)
Door2 = createObject(980, X , Y , z ,0,0,0)
markerDoor1 = createMarker(2493.3000488281,-1681.5,15.10000038147,'cylinder',11.5,0,0,255,0)
markerDoor2 = createMarker( X , Y , z ,'cylinder',11.5,0,0,255,0)
addEventHandler('onMarkerHit',root,
function ( hitElement )
if ( source == markerDoor1 ) then
if getElementData(hitElement,'Group') == 'abed' then
moveObject(Door1,1000,2493.3000488281,-1681.5,19.10000038147)
end
end
if ( source == markerDoor2 ) then
if getElementData(hitElement,'Group') == 'abed' then
moveObject(Door2, X , Y , z )
end
end
)
addEventHandler('onMarkerLeave',root,
function ( hitElement )
if ( source == markerDoor1 ) then
if getElementData(hitElement,'Group') == 'abed' then
moveObject(Door1,1000,2493.3000488281,-1681.5,15.10000038147)
end
end
if ( source == markerDoor2 ) then
if getElementData(hitElement,'Group') == 'abed' then
moveObject(Door2,1000, X , Y , z)
end
end
)
تأكد من الاحداثيات