Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-11-22, 17:27


LordKamis







Wiek: 26
Na forum: 4481 dni
Posty: 107

Piwa: 190

Respekt: 60

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 ) 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 18:02


Dixers

No-Life






Wiek: 26
Na forum: 4453 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8


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) 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 18:10


LordKamis







Wiek: 26
Na forum: 4481 dni
Posty: 107

Piwa: 190

Respekt: 60

Nadal teleportuje mnie na kordynaty ale ci?gle w tym samym interiorze

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 18:17


Dixers

No-Life






Wiek: 26
Na forum: 4453 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

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)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 19:17


Jeey

Lua, Grafik






Wiek: 27
Na forum: 4480 dni
Posty: 98
Nick w MP: Jeey

Piwa: 383

Respekt: 80

Ostrzeżeń: 100%

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 19:36


Dixers

No-Life






Wiek: 26
Na forum: 4453 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

Milo_, o w?a?nie. Dzi?ki za poprawk?. Dzi? w og?le nie my?l? :(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 19:52


LordKamis







Wiek: 26
Na forum: 4481 dni
Posty: 107

Piwa: 190

Respekt: 60

Nadal teleportuje mnie na dobre kordynaty ale nadal nadal jestem w interiorze 3 a nie w 0

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 20:23


Jeey

Lua, Grafik






Wiek: 27
Na forum: 4480 dni
Posty: 98
Nick w MP: Jeey

Piwa: 383

Respekt: 80

Ostrzeżeń: 100%


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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 20:50


LordKamis







Wiek: 26
Na forum: 4481 dni
Posty: 107

Piwa: 190

Respekt: 60

Dzi?ki ten kod dzia?a masz ode mnie browara :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: interioru
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Tp z interioru Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku