Static weapons
Posted: Tue Dec 22, 2009 9:23 am
Hello all, its possible to create a static weapon with a minigun turret or smaw turret?
(screen of nohalfmeasures)
Just have to spawn a pco?

Just have to spawn a pco?
A website for modding Battlefield 1942, BF2, BFV, and the Battlefield Series
https://www.bfmods.com/
Code: Select all
rem ##### Adding Minigun #####
objecttemplate.create objectspawner Technicalspawner
objecttemplate.setobjecttemplate 2 Technical
objecttemplate.setobjecttemplate 1 Technical
objecttemplate.setobjecttemplate 3 UH-60_Gunner
objecttemplate.minspawndelay 10
objecttemplate.maxspawndelay 20
objecttemplate.spawndelayatstart 0
objecttemplate.timetolive 45
objecttemplate.distance 40
objecttemplate.damagewhenlost 3
rem ##### Set Exitlocation #####
ObjectTemplate.Active UH-60_Gunner
ObjectTemplate.setSoldierExitLocation -1/0/0 0/0/0
objecttemplate.hascollisionphysics 1
ObjectTemplate.HasResponsePhysics 1
Code: Select all
rem ##### Add minigun at blue main #####
Object.create Technicalspawner
Object.absolutePosition 698.70/23.08/719.30
Object.rotation 105.75/0.00/0.00
Object.setTeam 3