• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Spawning a Tank

mat69

Grizzled Veteran
Aug 1, 2006
826
0
Hello,

I try to spawn a tank by mutator in a map - just for the sake of it.

Well I tried that:

Code:
function addtank()
{
	local vector spawnloc;
	//addtanks
	spawnloc.X = -33000;
	spawnloc.Y = 300;
	spawnloc.Z = 0;
	Spawn(class 'ROVehicles.ROKV1Factory',,,spawnloc);
}
I also tried to spawn the tank directly ROVehicles.KV1Tank, but both did not work.
And yes I made sure that this location is inside the map I tried it on.
Can anyone help me?

Thanks for reading!