The Tank / Vehicle is [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=288026358"]SligWolf's Tank [Leopard 2] [/URL]
It uses 3 ents, vehicle base with a vehiclescript and 2 prop_vehicle_prisoner_pod with vehicle scripts. The trouble is i can't spawn it correctly, i can drive it but i cannot fire the guns
or rotate the top.
Here is the Lua file. [URL="http://pastebin.com/zCQ4tUsm"]Pastebin[/URL]
Here is the script i have attempted to use and failed.
[CODE] local tank6 = {}
tank6[1] = { model = "models/sligwolf/tank/sw_tank_leo.mdl", position = Vector(7282.4165039063, -13370.46484375, 334.57418823242), angles = Angle(0.091550879180431,-2.3471026420593,-0.002105712890625), script = "scripts/vehicles/sligwolf/sw_tank_v2.txt" }
[/CODE]
[CODE] for i = 1, #tank6 do
local tank_6 = ents.Create("prop_vehicle_jeep")
tank_6:SetModel(tank6[i].model)
tank_6:SetName("sw_tank_v2")
tank_6:SetPos(tank6[i].position)
tank_6:SetAngles(tank6[i].angles)
tank_6:SetKeyValue("vehiclescript", tank6[i].script)
tank_6:Spawn()
end[/CODE]
any and all help would be very appreciated.
Sorry, you need to Log In to post a reply to this thread.