I found this via google, trying to do the same thing.
I figured it out, figured I'd share for others wanting the same
It takes some C# as mentioned, but in your bullet class, override Impact
Something like this:
Check out Jecrell's Plague Gun tutorial if you don't know how to get this far, this is his code
I figured it out, figured I'd share for others wanting the same
It takes some C# as mentioned, but in your bullet class, override Impact
Something like this:
Code Select
protected override void Impact(Thing hitThing) {
if (Def != null && hitThing != null && hitThing is Pawn hitPawn)
{
hitPawn.TryAttachFire(1);
}
}
Check out Jecrell's Plague Gun tutorial if you don't know how to get this far, this is his code