Wysłany: 2014-09-20, 21:31
teusz11
Wiek: 29 Na forum: 4652 dni Posty: 191
Nick w MP: Matevsz
Piwa : 4
Witam, jak zrobi? teleport do interioru? Czy jak tworze w interiorze markery to podawa? id interioru czy tylko samo x, y, z ?
Za pomoc
Wysłany: 2014-09-20, 22:04
TheTroll
Pan Majster
Wiek: 38 Na forum: 4764 dni Posty: 219
Nick w MP: TheTroll
Piwa : 1114
Podajesz id interioru oraz pozycj? x, y i z.
Ma?y przyk?adzik teleportu do interioru: (strona klienta)
Kod: local marker = createMarker(x, y, z "cylinder", 1, 255, 255, 255, 255) -- tworzysz marker
function wejdz(hitPlayer, matchingDimension) -- funkcja teleportuj?ca gracza po wejsciu w marker o nazwie 'marker'
localPlayer = hitPlayer
if isElementWithinMarker(localPlayer, marker) then
setTimer ( setElementPosition, 50, 1, localPlayer, x,y,z )
setTimer ( setElementInterior, 50, 1, localPlayer, id interioru )
end
end
addEventHandler("onClientMarkerHit", marker, wejdz)
Nie testowane ale powinno dzia?a?
Wysłany: 2014-09-21, 15:10
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
W zasadzie to przydadz? Ci si? tylko 2 funkcje:
ustawia element w podanej pozycji,
ustawia podany interior podanemu elementowi.
Reszt? ju? na w?asn? r?k? zr?b.
Tagi: teleport :: interioru
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: