"Script Error: There are 0 entities with targetname "vehicles/kingcannon.tik". You are using a command that requires exactly one."
Here is the beginning of the script which initializes the tank variables...
Code: Select all
local.ent = spawn vehicles/kingtank.tik
local.ent.origin = local.origin
local.ent.angle = local.angle
local.ent.scale = 0.5 // this works great for the tank body
local.ent.gun = local.ent QueryTurretSlotEntity 0
local.ent.gun2 = local.ent QueryTurretSlotEntity 1
local.ent.projectile = "models/projectiles/tigercannonshell.tik"
local.ent.turret1 = "vehicles/kingcannon.tik"
//local.ent.turret1.scale = .5 // this does not work and creates the above error
local.ent.damagemdl = "vehicles/kingtank_d.tik"I am also getting the same error when I try to scale the 'local.ent.damagemdl' variable. Console replies with the same error as stated above.
Now I have managed to actually scale the turret model in its tiki file, but that would not allow for a server side only mod. Is there a way I can scale the turret and the damaged model with server side only scripting ?
G3mInI



