Code: Select all
if (GetCurrentSide() == GetUnitSide(me))
{
.....
}
Code: Select all
if (GetShowSide() == GetUnitSide(me))
{
.....
}
Moderators: Slitherine Core, BA Moderators

Code: Select all
if (GetCurrentSide() == GetUnitSide(me))
{
.....
}
Code: Select all
if (GetShowSide() == GetUnitSide(me))
{
.....
}

Post by pipfromslitherine »

Damn!pipfromslitherine wrote:You need to be VERY careful using thisOtherwise you can end up executing different code in MP replays. The current side is the side whose units are currently doing their thing, either under player control or during a replay.
Cheers
Pip

Post by pipfromslitherine »

Return to “Battle Academy : Modders Corner ”