Page 1 of 1

Static weapons

Posted: Tue Dec 22, 2009 9:23 am
by Darkstef
Hello all, its possible to create a static weapon with a minigun turret or smaw turret?

Image (screen of nohalfmeasures)

Just have to spawn a pco?

Re: Static weapons

Posted: Tue Dec 22, 2009 10:33 am
by Poow
I've made a minigun (UH-60_Gunner) :

http://www.youtube.com/watch?v=_23ZxeG0Vac

Pictures:
Minigun
Other weapons:
AC 130 Minigun
AC 130 "Big Gun"
...

Example code:

ObjectSpawnTemplates.con:

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
ObjectSpawns.con:

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

Re: Static weapons

Posted: Wed Dec 23, 2009 6:57 pm
by Darkstef
thanks very easy...