- 1 Sherman by Daniel Campos
- 2 Tank by J_
- 3 Panzer IV by Shue-Yi To
- 4 M1 Abrams by Artem Goyko
- 5 Т-34 by Petr Vorobey
- 6 Tank T-10M by yanix
- 7 Tiger I by M1RON
- Ayanokōji#0413 splited the models into 3 parts : cannon, turret and base
- /stank (id) to spawn a tank
- The onset-tanks package need to be loaded BEFORE your package if you want to use onset-tanks functions
- To check if the vehicle is a tank :
--server,client
if GetVehiclePropertyValue(vehicleid, "istank") then
-- code
end
- Get tank id
--server,client
GetVehiclePropertyValue(vehicle, "tankid")
- Get turret , cannon and base models of a tank
--server,client
local turret = GetVehiclePropertyValue(vehicle, "tourelleobj")
local cannon = GetVehiclePropertyValue(vehicle, "canonobj")
local base = GetVehiclePropertyValue(vehicle, "baseobj")
- Don't forget to import the onset-tanks package before using functions
--server
local tanks = ImportPackage("edit_me") -- put the onset-tanks package name here
- Spawn a tank
--server
local vehicleid,cannonobject,turretobject,tank_base_object = tanks.SpawnTank(tankid,x,y,z(,yawangle))
- transform a vehicle to a tank ( Please use vehicles models 13,14,15,16 for better collisions )
--server
local cannonobject,turretobject,tank_base_object = tanks.TransformToTank(tankid,vehicleid)
- Some cannons flying when rotating on the pitch axis
- Bad collisions