Skip to content

CompProperties_GuidedProjectile

juanosarg edited this page Jun 3, 2026 · 1 revision

<- Back

CompProperties_GuidedProjectile is a comp that will make a projectile track different targets independently

         public float hitChance;
         public bool selectDifferentTargets;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this is the swarm rocket in Vanilla Weapons Expanded - Heavy Weapons

<comps>
	<li Class="VEF.Weapons.CompProperties_GuidedProjectile">
		<hitChance>1</hitChance>
		<selectDifferentTargets>true</selectDifferentTargets>
	</li>
</comps>

Clone this wiki locally