static private AlternativeUnitAllowPlayerControl_Destroying ( Entity entity ) : void | ||
entity | Entity | |
Résultat | void |
void AlternativeUnitAllowPlayerControl_Destroying( Entity entity )
{
if( ControlledObject == entity && mainNotActiveUnit != null )
{
//restore main player controlled unit
ServerOrSingle_RestoreMainControlledUnit();
}
}