ProLisu Posted January 18, 2015 Share Posted January 18, 2015 Witam. Mój problem polega na tym że, kiedy wchodzę w marker to brama nie przesówa się. Proszę o pomoc, bo nie daje sobie już z tym rady myMarker1 = createMarker( 2457.5, -1660, 12.3, 'cylinder', 1.0, 0, 0, 255, 255) bra1 = createObject ( 980, 2465.6001, -1658.5, 15.1, 0, 0, 270 ) function MarkerHit1 (hitPlayer, matchingDimension) local playera = hitPlayer if getElementType( playera ) == "player" then if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( playera ) ), aclGetGroup( 'Admin' ) ) then moveObject ( bra1, 2465.6001, -1658.5, 20.4, 358, 0, 270) outputChatBox("Witaj na Groove", playera,0,0,0,true) end end end function MarkerLeave1 (thePlayer) moveObject ( bra1, 2465.6001, -1658.5, 15.1, 0, 0, 270) end addEventHandler ( "onMarkerLeave", myMarker1, MarkerLeave1 ) addEventHandler ( "onMarkerHit", myMarker1, MarkerHit1 ) Link to comment
Seba500PLK Posted April 4, 2015 Share Posted April 4, 2015 Witaj, już wiem dlaczego twój skrypt nie działa. Marker jest troche za nisko więc ustaw wysokość na 12.4. Druga sprawa jest taka ze zle ustawiles argumenty dla funcki MoveObject powinno być tak: moveObject ( theObject, 10000, origX, origY, newZ ) ty masz tak: moveObject ( theObject, origX, origY, newZ ) nie masz zdefiniowanej szybkosci więc w funkcji MarkerHit1 w moveObject po "bra1" wpisz szybkosc np 1000, w MarkerLeave1 to samo 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