Witam posiadam problem taki, ?e gdy usun? g?owny obiekt w grze i na to miejsce postawie taki sam w tym samym miejscu to po wejsciu do gry co? takiego si? z nim robi
Natomiast gdy obiekt zostanie postawiony w innym miejscu stoi prosto.
Nie wiem czemu tak si? dziej? ale bardzo mi to przeszkadza gdy chce zmieni? texture obiektu wlasnie w tym miejscu. Dodam, ?e u?ywam Map construction. Oczywi?cie za pomoc du?e piwo!
Witam..
Prosz? o pomoc, gdy? napisa?em "skrypt" na bierierki dla r??nych frakcji, lecz
[b]rotacja[/b] mi nie chce dzia?a?...
Obiekt ci?gle tworzy si? w t? sam? stron?, a powinien si? tworzy? ci?gle przed graczem.
S-Side
[lua]addEvent("Postaw:Barierka", true)
addEventHandler("Postaw:Barierka", getRootElement(), function()
local x, y, z = getElementPosition(source)
local Rx, Ry, Rz = getElementRotation(source)
local Barierka = createObject(1228, 0, 0, 0, 0, 0, 0)
attachElements(Barierka, source, 0, 1.1000000238419, -0.65, 0, 0, Rz)
detachElements(Barierka, source)
setElementFrozen(Barierka, true)
end)[/lua]
C-Side[lua]
function Panel_Blokad_Wez_Barierka()
if source~=Przycisk_Barierka then return end
guiSetVisible(Panel_Blokad, false)
setElementData(localPlayer, "Gracz:Barierka", true)
local x, y, z = getElementPosition(localPlayer)
local Rx, Ry, Rz = getElementRotation(localPlayer)
local Barierka = createObject(1228, 0, 0, 0, 0, 0, 0)
attachElements (Barierka, localPlayer, 0, 1.1000000238419, -0.60000002384186, 0, 0, 90)
setElementCollisionsEnabled(Barierka, false)
setElementAlpha(Barierka, 150)
function Panel_Blokad_Schowaj_Barierka()
if source~=Przycisk_Barierka2 then return end
if getElementData(localPlayer, "Gracz:Barierka") then
guiSetVisible(Panel_Blokad, false)
destroyElement(Barierka)
setElementData(localPlayer, "Gracz:Barierka"...