Ra7sErEom Posted April 22, 2014 Share Posted April 22, 2014 السلام عليكم ورحمه الله وبركاته شباب ممكن سؤال شباب انا حابب اعرف بس ابرمج بوابتين للمقر ما تعمل الا بوابه يعني بس اروخ على البوابه الثاني تنتقل الحديده بسرعه للبوابه الاولى انا ابي اعرف شو الحل + كيف طريقه تركيبها وشكرا. Link to comment
Ra7sErEom Posted April 22, 2014 Author Share Posted April 22, 2014 اوك ذا هو كود البوابه Door1 = createObject(980,2493.3000488281,-1681.5,15.10000038147,0,0,0) markerDoor1 = createMarker(2493.3000488281,-1681.5,15.10000038147,'cylinder',11.5,0,0,255,0) addEventHandler('onMarkerHit',markerDoor1, function ( hitElement ) if getElementData(hitElement,'Group') == 'abed' then moveObject(Door1,1000,2493.3000488281,-1681.5,19.10000038147) end end ) addEventHandler('onMarkerLeave',markerDoor1, function ( hitElement ) if getElementData(hitElement,'Group') == 'abed' then moveObject(Door1,1000,2493.3000488281,-1681.5,15.10000038147) end end ) Link to comment
ahmed1010 Posted April 23, 2014 Share Posted April 23, 2014 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 ) تأكد من الاحداثيات Link to comment
Mr-M3AND Posted April 23, 2014 Share Posted April 23, 2014 اوك ذا هو كود البوابه Door1 = createObject(980,2493.3000488281,-1681.5,15.10000038147,0,0,0) markerDoor1 = createMarker(2493.3000488281,-1681.5,15.10000038147,'cylinder',11.5,0,0,255,0) addEventHandler('onMarkerHit',markerDoor1, function ( hitElement ) if getElementData(hitElement,'Group') == 'abed' then moveObject(Door1,1000,2493.3000488281,-1681.5,19.10000038147) end end ) addEventHandler('onMarkerLeave',markerDoor1, function ( hitElement ) if getElementData(hitElement,'Group') == 'abed' then moveObject(Door1,1000,2493.3000488281,-1681.5,15.10000038147) end end ) الكود هذا شغال , اطرح كود البوابة الثانية Link to comment
Ra7sErEom Posted April 23, 2014 Author Share Posted April 23, 2014 ما عندي غير ذا الكود Link to comment
abu5lf Posted April 23, 2014 Share Posted April 23, 2014 ما عندي غير ذا الكود - كاتب بالموضوع بوابتين ! - الرجال على حد قوله شغال الكود وش المطلوب الان؟ Link to comment
Ra7sErEom Posted April 24, 2014 Author Share Posted April 24, 2014 المطلوب انو انا بس اعمل بوابتين ونفس الكود بس بملفين بس اروح على البوابه الثانيه اشوف البوابه تنتقل الى البوابه الاول وبس اروح على البوابه الاولى ترجع على البوابه الثانيه Link to comment
Ra7sErEom Posted April 24, 2014 Author Share Posted April 24, 2014 قصدي الحديده لبنصف البوابه لي تنتقل Link to comment
ahmed1010 Posted April 24, 2014 Share Posted April 24, 2014 سوى الوابتين بالكود الى انا كاتبه فوق و تأكد من الاحدائيات Link to comment
KILER-XD Posted May 27, 2014 Share Posted May 27, 2014 عندي الحل اخي اسمع كل المشكله انهم يكونون مدموجين يعني كريت اوبجكت 1 انت خليها 2 ولو في كريت ماركر 1 خليها 2 يعني غير كل الارقام وذا لحل مجرب واتمنى اني اكون افدتك Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now