[YARDIM] Editor'de Ped'e Animasyon Verme

0 Üye ve 2 Ziyaretçi konuyu incelemekte.

Çevrimdışı x.anil

  • Yeni Üye
  • *
    • İleti: 24
  • Atatürk Gaming
: 24 Şubat 2019, 12:28:57
Üzerinde çalıştığım maplarda bitişe yaklaşmaktayım fakat koyduğum pedlere animasyon eklemek istiyorum. Mesela; Reklam afişi önünde konuşan iki ped yapmak istiyorum. Pedleri ayarladım fakat animasyon veremedim. Yardımcı olabilir misiniz ?

Linki görebilmek için Kayıt olun yada Giriş yapın.
« Son Düzenleme: 24 Şubat 2019, 12:32:45 Gönderen: x.anil »
 


MTASATURK

[YARDIM] Editor'de Ped'e Animasyon Verme
« : 24 Şubat 2019, 12:28:57 »

Çevrimdışı shephard^

  • Uzman Üye
  • *
    • İleti: 776
  • decay.
Yanıtla #1 : 24 Şubat 2019, 13:47:33
Linki görebilmek için Kayıt olun yada Giriş yapın.

Linki görebilmek için Kayıt olun yada Giriş yapın.
 


Çevrimdışı x.anil

  • Yeni Üye
  • *
    • İleti: 24
  • Atatürk Gaming
Yanıtla #2 : 25 Şubat 2019, 17:26:30
Linki görebilmek için Kayıt olun yada Giriş yapın.
Linki görebilmek için Kayıt olun yada Giriş yapın.

Linki görebilmek için Kayıt olun yada Giriş yapın.

Bunları bende buldum da birleştiremedim tam bi kod var elimde pedleri oluşturdum fakat animasyon veremedim ve dx yazısında bi hata veriyor ne olduğunu anlayamadım.

Hata:
Linki görebilmek için Kayıt olun yada Giriş yapın.

Kod:
Kod
--Ped Oluşturma--

local pedMarket = createPed (20, -724.81372070313,970.06854248047,12.3168592453)
local pedAch = createPed (21, -728.81372070313,970.06854248047,12.3168592453)
local pedSet = createPed (23, -732.81372070313,970.06854248047,12.3168592453)

--Ped Dondurma--

setPedFrozen(pedMarket, true)
setPedFrozen(pedAch, true)
setPedFrozen(pedSet, true)

--Ped Ölümsüzlük--


function pedDemecEngelle ( saldirgan )
    if source == pedMarket then
        cancelEvent()
elseif source == pedAch then
cancelEvent()
elseif source == pedSet then
cancelEvent()
    end
end
addEventHandler ( "onClientPedDamage", getRootElement(), pedDemecEngelle )



addEventHandler("onClientRender", root,
function()

        -- Market Ped --
        local x, y, z = getElementPosition( pedMarket )
        local x2, y2, z2 = getElementPosition(localPlayer)
        local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
        if yakinlas < 2 then
           local x2, y2, z2 = getElementPosition(localPlayer)
           local sx, sy = getScreenFromWorldPosition(x, y, z+0.9, 0.06) 
           local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
           local yaziboyut = 0.9
           dxDrawText ( "Market", sx, sy - 30, sx, sy - 30, tocolor(255,255,255), math.min ( 0.3*(150/yakinlas)*1.4,1.3 - (0.5 + math.sin(math.rad(getTickCount())) / 3) / 12) * yaziboyut, "default-bold", "center", "bottom", false, false, false, true )
        end

-- Görev Ped --
local x, y, z = getElementPosition( pedAch )
        local x2, y2, z2 = getElementPosition(localPlayer)
        local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
        if yakinlas < 2 then
           local x2, y2, z2 = getElementPosition(localPlayer)
           local sx, sy = getScreenFromWorldPosition(x, y, z+0.9, 0.06) 
           local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
           local yaziboyut = 0.9
           dxDrawText ( "Görev", sx, sy - 30, sx, sy - 30, tocolor(255,255,255), math.min ( 0.3*(150/yakinlas)*1.4,1.3 - (0.5 + math.sin(math.rad(getTickCount())) / 3) / 12) * yaziboyut, "default-bold", "center", "bottom", false, false, false, true )
        end

-- Işınlanma Ped --
local x, y, z = getElementPosition( pedSet )
        local x2, y2, z2 = getElementPosition(localPlayer)
        local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
        if yakinlas < 2 then
           local x2, y2, z2 = getElementPosition(localPlayer)
           local sx, sy = getScreenFromWorldPosition(x, y, z+0.9, 0.06) 
           local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
           local yaziboyut = 0.9
           dxDrawText ( "Işınlayıcı", sx, sy - 30, sx, sy - 30, tocolor(255,255,255), math.min ( 0.3*(150/yakinlas)*1.4,1.3 - (0.5 + math.sin(math.rad(getTickCount())) / 3) / 12) * yaziboyut, "default-bold", "center", "bottom", false, false, false, true )
        end
end
)


bindKey("F", "down",
function()

    -- Market Ped --
    local x, y, z = getElementPosition( pedMarket )
    local x2, y2, z2 = getElementPosition(localPlayer)
    local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
    if ( yakinlas < 2 ) then
--Bu kısıma market pedine girince yapılacak işlemler
        outputChatBox("Market pede girdin")
    end

    -- Görev Ped --
    local x, y, z = getElementPosition( pedAch )
    local x2, y2, z2 = getElementPosition(localPlayer)
    local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
    if ( yakinlas < 2 ) then
--Bu kısıma görev pedine girince yapılacak işlemler
        outputChatBox("Görev Pedine girdin")
    end

    -- Işınlanma Ped --
    local x, y, z = getElementPosition( pedSet )
    local x2, y2, z2 = getElementPosition(localPlayer)
    local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2)
    if ( yakinlas < 2 ) then
--Bu kısıma ışınlanma pedine girince yapılacak işlemler
        outputChatBox("Işınlanma Pedine girdin")
    end

end
)
« Son Düzenleme: 25 Şubat 2019, 17:39:54 Gönderen: x.anil »
 


Çevrimdışı shephard^

  • Uzman Üye
  • *
    • İleti: 776
  • decay.
Yanıtla #3 : 25 Şubat 2019, 19:45:02
Kod
pedAch = createPed (21, -728.81372070313,970.06854248047,12.3168592453)
setPedAnimation(pedAch, "ped", "WOMAN_walknorm")

gibi zor bişey yok anim listesi : Linki görebilmek için Kayıt olun yada Giriş yapın.
 
Mesajı Beğenenler: x.anil


Çevrimdışı x.anil

  • Yeni Üye
  • *
    • İleti: 24
  • Atatürk Gaming
Yanıtla #4 : 26 Şubat 2019, 19:03:27
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kod
pedAch = createPed (21, -728.81372070313,970.06854248047,12.3168592453)
setPedAnimation(pedAch, "ped", "WOMAN_walknorm")

gibi zor bişey yok anim listesi : Linki görebilmek için Kayıt olun yada Giriş yapın.

Teşekkürler.
« Son Düzenleme: 15 Mart 2019, 20:51:58 Gönderen: Narkoz »