Debriefing > Impressions & Feedback

New Python API Callback: OnPlayerChangedTeam(player,oldTeam,newTeam,autoBalance)

(1/1)

Joe:
Hi,

This new call back function would help to simplify and reduce the amount of code in my Die Another Day mode's script.

killermonkey:
Why doesn't CanPlayerChangeTeam callback work for you?

Joe:
Being a query function instead of an event callback, script writers shouldn't include code in CanPlayerChangeTeam() which assumes that the queried player will have their team changed after a call to this function returns true.

The auto balance calls this function for every member of a team before choosing the member who will have their team changed.

killermonkey:
Touché!

Navigation

[0] Message Index

Go to full version