Skip to content

Notification String for time limit on building#399

Open
FightKnight441 wants to merge 6 commits into
Bro-Nation:developmentfrom
FightKnight441:development
Open

Notification String for time limit on building#399
FightKnight441 wants to merge 6 commits into
Bro-Nation:developmentfrom
FightKnight441:development

Conversation

@FightKnight441

Copy link
Copy Markdown

This is the string that the player will see if they reach the time limit for a building.

It is called here

`// Check if the current lifetime would exceed the time limit
if ( _proposedRemainingTimeSeconds >= _maxTimeLimit) then {
// if the supplies that are being added will exceed 2 hours for the building, trim the supplies so that it only reaches 2 hours max. This will still consume the item!!!
_supplies = (_maxTimeLimit * _supplyConsumptionRate) - _currentSupplies;

// notify players that time limit has been reached and item was still consumed
["TaskFailed",["",localize "STR_para_build_maxtimereached"]] call para_c_fnc_show_notification;

};`

@FightKnight441

Copy link
Copy Markdown
Author

Man it looks like it did my other specific commits as well, my bad. Have to learn how to not do that some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant