Static weapons

Ask questions, discuss ideas, get answers
Post Reply
Darkstef
Posts: 30
Joined: Wed Oct 21, 2009 4:49 pm

Static weapons

Post 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?
Poow
Posts: 271
Joined: Sun Nov 01, 2009 8:00 pm
Location: Germany
Contact:

Re: Static weapons

Post 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
You’re entering a world of pain!
Darkstef
Posts: 30
Joined: Wed Oct 21, 2009 4:49 pm

Re: Static weapons

Post by Darkstef »

thanks very easy...
Post Reply