Jump to content

مساعده في عمل باب


Recommended Posts

السلام عليكم ورحمة الله تعالى وبركاته

شباب انا ابي اسوي باب يفتح لما توقف

على الماركر الخاص فيه

شفت مواضيع عديدة بالمنتدى واستفدت

بس م زبط المود

انا ما سويت ايفينت علشان لما ابعد عن الماركر يسكر الباب

المهم الباب مو راضي يطلع لفوق

شوفو انا وش مسوي

وقولولي ايش اسوي علشان يزبط

او سووه عني ضض1

  
theMarker = createMarker ( -3172.04, -2954.92, 5, "cylinder", 1.5, 255, 255, 0, 170 ) 
   
door = createObject ( 971, -3173.30, -2956.10, 5 ) 
  
function tzwer ( ) 
    moveObject ( door, 5000, -3173.30, -2956.10, 37.42 ) 
end 
addEventHandler( "onMarkerHit", theMarker, tzwer ) 
  

ملاحظة : انا سويت ملف لوا وحطيت فه هذي المعلومات وحطيت ميتا

وظهرت البوابة والماركر

بس م اشتغل

وشكرا لكم

Link to comment

theMarker = createMarker ( -3172.04, -2954.92, 5, "cylinder", 2, 255, 255, 0, 170 ) 
  
door = createObject ( 971, -3173.30, -2956.10, 5 ) 
  
addEventHandler( "onMarkerHit", theMarker,function(element) 
    if getElementType(element) == 'player' then 
        moveObject ( door, 5000, -3173.30, -2956.10, 37.42 ) 
        end 
    end 
) 
Link to comment
theMarker = createMarker ( -3172.04, -2954.92, 5, "cylinder", 2, 255, 255, 0, 170 ) 
  
door = createObject ( 971, -3173.30, -2956.10, 5 ) 
  
addEventHandler( "onMarkerHit", theMarker,function(element) 
    if getElementType(element) == 'player' then 
        moveObject ( door, 5000, -3173.30, -2956.10, 37.42 ) 
        end 
addEventHandler( "onMarkerLeave", theMarker,function(element) 
    if getElementType(element) == 'player' then 
        moveObject ( door, -3172.04, -2954.92, 5 ) 
        end 
    end 
)    
  

هذا صح ولا غلط ضض2

تراني نوب عالبرمجة

Link to comment

جرب #

  
theMarker = createMarker ( -3172.04, -2954.92, 5, "cylinder", 2, 255, 255, 0, 170 ) 
  
door = createObject ( 971, -3173.30, -2956.10, 5 ) 
  
addEventHandler( "onMarkerHit", theMarker,function(element) 
    if getElementType(element) == 'player' then 
        moveObject ( door, 5000, -3173.30, -2956.10, 37.42 ) 
        end 
end) 
  
addEventHandler( "onMarkerLeave", theMarker,function(element) 
    if getElementType(element) == 'player' then 
        moveObject ( door, 5000, -3172.04, -2954.92, 5 ) 
       end 
 end)    
  

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