Need help in creating cavalry

Started by Armorer, April 06, 2015, 12:50:37 PM

Previous topic - Next topic

Armorer

Greetings,
I want to make some cavalry apparel that transforms into animal when wearer is downed or dead. So I have a problem - how to make apparel unwear on pawn's death?

BBream

I think the answer can find in RaceProperties.deathAction but I don't know how it can be used

soltysek

On dead will be easier you can hook to "death action " and spawn animal as a " Work around " way to do it but any way it will req. alot of C# coding in theory :
on dead check if Apparel is on if yes pawn.invertory Apparel destroy then spawn animal if no return .  you do not need to unwear it just destroy it . i never play with pawn inventory but you can chcek command strip and modifi it with dummy object set on start which will scan pawns for dead status and Apparel status and when both of them are true do destroy and spawn .