If you want to help us maintaining this wiki, check out our discord server: https://discord.gg/3u69jMa
Difference between revisions of "Create new Squad Member"
Jump to navigation
Jump to search
(Created page with "This tutorial shows you how to create custom squad members for your party. ==Create new squad class== In your Actor browser, go to Actor->Pawn->CTPawn->Republic->CloneComman...") |
|||
Line 50: | Line 50: | ||
The rest of this tutorial is just adjusting the properties of our new squad class. | The rest of this tutorial is just adjusting the properties of our new squad class. | ||
=Advanced= | ===Advanced=== |
Revision as of 20:50, 10 August 2019
This tutorial shows you how to create custom squad members for your party.
Create new squad class
In your Actor browser, go to Actor->Pawn->CTPawn->Republic->CloneCommando and create a new sub class from CloneCommando.
Once the class and package have been created and saved, add the following code to the new class:
class MyCustomCommando extends CloneCommando;
var Texture ReviveOutsideTexture;
var Texture ReviveInsideTexture;
var localized string HUDDescription;
var localized string HUDNickname;
simulated event String GetHudDescription()
{
return HUDDescription;
}
simulated event String GetHudNickname()
{
return HUDNickname;
}
simulated function AnimateWoundedWalking()
{
TurnLeftAnim = 'WoundedTurnLeft';
TurnRightAnim = 'WoundedTurnRight';
MovementAnim = 'Wounded62WalkForward';
}
simulated function AnimateWoundedRunning()
{
TurnLeftAnim = 'WoundedTurnLeft';
TurnRightAnim = 'WoundedTurnRight';
MovementAnim = 'Wounded62RunForward';
}
Hit the compile button and save the package.
Adjusting Properties
The rest of this tutorial is just adjusting the properties of our new squad class.