Change of projectile

Ask questions, discuss ideas, get answers
Post Reply
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Change of projectile

Post by anselmus »

Ok, I know that this question is repetitive, but ...
About change of projectile:

Example:
This works
ObjectTemplate.Active bar1918
ObjectTemplate.projectileTemplate M10Projectile

But it does not work for Flak38
ObjectTemplate.Active Flak38
ObjectTemplate.projectileTemplate M10Projectile

Why?
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Change of projectile

Post by Apache Thunder »

That doesn't work because the handweapons are also firearms that fire projectiles. You attempted to active the PCO instaed of it's firearm. Which is why for the flak, it didn't work. You need active the firearm and NOT the main PCO!

Code: Select all

ObjectTemplate.active flak38_gun_fire
ObjectTemplate.projectileTemplate M10Projectile
Try that. It should work then. Remember that handweapons are not PCOs. They are a different type of firearm used on soldier kits, thus modifing them directly works. But with PCOs, they always have separate bundles that handle the projectiles. ;)
ImageImageImage
I have cameras in your head!
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re: Change of projectile

Post by anselmus »

Again thanks for the explanation.
Post Reply