huss97 Posted September 21, 2013 Share Posted September 21, 2013 بدون مقدمات local gate = createObject(980, 0, 0, 5, 0, 0, 0) local marker = createMarker(0, 0, 0, "cylinder", 10, 255, 255, 255, 255) function moveGate(source) if getElementData (source,'Group' ) == 'Pro' then moveObject(gate, 5000, 0, 0, 15 ) setTimer(moveBack, 5000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 5000, 0, 0, 5) end االسالفة ان البوابة ماتتحرك Link to comment
3NAD Posted September 21, 2013 Share Posted September 21, 2013 function moveGate(source_) if getElementData (source_,'Group' ) == 'Pro' then moveObject(gate, 5000, 0, 0, 15 ) setTimer(moveBack, 5000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) 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