Don't Disturb¶
An example of usage of the Don't Disturb flag. With this flag, you can prevent Offers from appearing during the battle, or Activate offers only on the main screen.
What Template includes¶
Activate Offer Script¶
A new version of a Script, which activates an offer, only when the DontDisturb flag is false.
Conversion Script¶
This script activates the offer using the script above, after 5 seconds of the gameplay.
Game Event¶
A simple event only launches the Script.
Section for programmers¶
DontDisturb is a property available in the system profile. You should set it to true when you don't want players to be interrupted by any LiveOps features, such as Offer popups. Don't forget to set it back to false.
LiveOps.Profile.GeneralInfo.DontDisturb = true;