ThingComp.CompCommands() doesn't work on Pawns

Started by pawnstorm, April 30, 2014, 11:10:41 AM

Previous topic - Next topic

pawnstorm

I tried to create a custom ThingComp class for pawns and I noticed the command actions I added weren't there in the game.

Edit: I think this can be fixed by also returning the commands in base.GetCommands() in the Pawn class

pawnstorm

Just figured I'd bump this since I added a fix, but edited posts don't bump the topic and I do hope this will be fixed in alpha 4. Sorry for bumping.

Anyway, a simple "foreach (Command c in base.GetCommands()) yield return c;" at the start or end (depending on where the command buttons should display) of Pawn.GetCommands() should suffice.

Tynan

Must be a mistake by me. I will fix it for Alpha4.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

ItchyFlea

All my mods are licensed under a Attribution-NonCommercial-ShareAlike 4.0 International
Ask for permission before using in ModPacks

Click here for a list of the mods I've created

Tynan

It is not really a player relevant bug, but an API issue. So no thanks.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Tynan

All right, this is fixed. Thanks again for the report.
Tynan Sylvester - @TynanSylvester - Tynan's Blog