Wysłany: 2014-11-22, 17:27
LordKamis
Wiek: 26 Na forum: 4340 dni Posty: 107
Piwa : 190
Witam chcia?em zrobi? teleport z interioru "3" do "0" lecz po wej?ciu w marker teleportuje mnie na kordynaty ale jestem nadal w interiorze "3"
local marker1 = createMarker ( 238.599 , 139.345 , 1002.0 , "cylinder" , 1.5 , 255 , 255 , 0 , 170 )
setElementInterior ( marker1 , 3 )
local x , y , z = 2290.16210 , 2430.9877 , 9.920
function interior ( source )
setElementInterior ( source , 0 )
setElementPosition ( source , x , y , z )
end
addEventHandler ( "onMarkerHit" , marker1 , interior , false )
Wysłany: 2014-11-22, 18:02
Dixers
No-Life
Wiek: 26 Na forum: 4313 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
function interior ( source )
setElementInterior ( source , 0 )
setElementPosition ( source , x , y , z )
end
addEventHandler ( "onMarkerHit" , marker1 , interior , false )
Po co ci to false na ko?cu?
Daj:
function interior ( source )
setElementInterior ( source , 0 )
setElementPosition ( source , x , y , z )
end
addEventHandler ( "onMarkerHit" , marker1 , interior )
Wysłany: 2014-11-22, 18:10
LordKamis
Wiek: 26 Na forum: 4340 dni Posty: 107
Piwa : 190
Nadal teleportuje mnie na kordynaty ale ci?gle w tym samym interiorze
Wysłany: 2014-11-22, 18:17
Dixers
No-Life
Wiek: 26 Na forum: 4313 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
LordKamis , a ju? wiem.
Jak teleportujesz si? na interior 0 nie musisz go wpisywa? w funkcj?...
Czyli tak:
function interior ( source )
setElementPosition ( source , x , y , z )
end
addEventHandler ( "onMarkerHit" , marker1 , interior )
Wysłany: 2014-11-22, 19:17
Jeey
Lua, Grafik
Wiek: 27 Na forum: 4339 dni Posty: 98
Nick w MP: Jeey
Piwa : 383
local marker1 = createMarker ( 238.599 , 139.345 , 1002.0 , "cylinder" , 1.5 , 255 , 255 , 0 , 170 )
setElementInterior ( marker1 , 3 )
function interior ( thePlayer )
setElementInterior ( thePlayer , 0 )
setElementPosition ( thePlayer , 2290.16210 , 2430.9877 , 9.920 )
end
addEventHandler ( "onMarkerHit" , marker1 , interior )
jezu
Wysłany: 2014-11-22, 19:36
Dixers
No-Life
Wiek: 26 Na forum: 4313 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
Milo_ , o w?a?nie. Dzi?ki za poprawk?. Dzi? w og?le nie my?l?
Wysłany: 2014-11-22, 19:52
LordKamis
Wiek: 26 Na forum: 4340 dni Posty: 107
Piwa : 190
Nadal teleportuje mnie na dobre kordynaty ale nadal nadal jestem w interiorze 3 a nie w 0
Wysłany: 2014-11-22, 20:23
Jeey
Lua, Grafik
Wiek: 27 Na forum: 4339 dni Posty: 98
Nick w MP: Jeey
Piwa : 383
local mar_wejscie = createMarker ( x , y , z , "arrow" , 1.5 , 0 , 0 , 222 , 170 )
local mar_wyjscie = createMarker ( x , y , z , "arrow" , 1.5 , 0 , 0 , 222 , 170 )
setElementInterior ( mar_wyjscie , 3 )
function u_w ( thePlayer )
setElementPosition ( thePlayer , x , y , z )
setElementInterior ( thePlayer , 3 )
end
addEventHandler ( "onMarkerHit" , mar_wejscie , u_w )
function u_wy ( thePlayer )
setElementPosition ( thePlayer , x , y , z )
setElementInterior ( thePlayer , 0 )
end
addEventHandler ( "onMarkerHit" , mar_wyjscie , u_wy )
Masz ca?y kod na wejscie i wyjscie po stronie s-side
[ Dodano : 2014-11-22, 20:24 ]
te x ,y ,z ustaw swoje
Wysłany: 2014-11-22, 20:50
LordKamis
Wiek: 26 Na forum: 4340 dni Posty: 107
Piwa : 190
Dzi?ki ten kod dzia?a masz ode mnie browara
Tagi: interioru
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: