P43tous Posted September 1, 2019 Share Posted September 1, 2019 for i,veh in ipairs(spawnpatriot) do local x,y,z = veh[1],veh[2],veh[3] veh = createVehicle(470,x,y,z,rx,ry,rz) vehCol = createColSphere(x,y,z,5) attachElements(vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"MAX_Slots",80) -- setElementHealth(veh,10000) local tires,engine,parts = getVehicleAddonInfos (getElementModel(veh)) setElementData(vehCol,"Tire_inVehicle",math.random(0,tires)) setElementData(vehCol,"Engine_inVehicle",math.random(0,engine)) setElementData(vehCol,"Parts_inVehicle",math.random(0,parts)) setElementData(vehCol,"spawn",{470,x,y,z,rx,ry,rz}) setElementData(vehCol,"fuel",10) -- setTimer(destroyElement, 60000, 1, veh) -- setTimer(destroyElement, 60000, 1, vehCol) end Pessoal estou com dificuldade no Spawn de veiculo do meu servidor. Nesse cado o patriot spawna sempre na mesma direção e eu queria que cada spawn tivesse sua rotação no local. local spawnpatriot = { {-755.21899414063,714.38708496094,18.156896591187,0,0,180}, {-760.74725341797,702.11535644531,18.427885055542,0,0,50} Alguém pode me ajudar? Link to comment
DNL291 Posted September 3, 2019 Share Posted September 3, 2019 rz Último valor na sua tabela 'spawnpatriot'. @P43tous Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now