![]() |
how to trigger the big yellow messages?
i have a training mission, where both sides have a restricted plane amount for their spawn areas(20 planes).
now i want that if one of both spawn areas has only 10 planes left, that a message pops up, warning the team just like "team red only 10 planes left"(although i would like to have this message visible for everybody) and i want another message to pop up, when eventually one spawn area has all available plane used and when all planes of one side are destroyed just like "team blue has lost the war" Edit: ok i just found out, that the limit of planes of a spawn area doesnt seem to work... i restricted one spawn area to only 1 plane, but i could spawn several times from the same area without problems:confused: |
The number of planes is for how many planes a player can create at the same time.
|
ah ok....is it then possible, to give a spawnerea a certain amount of planes?
|
äh yes you can destroy it. So it vanished from Map. Or destroy the new created planes instantly or block the planes via Player.PlaceLeave.
|
Quote:
vanishing from the map, would be a fancy solution for this i think, coupled with a message that the opposite team won. but i guesss i would need your help for that... Edit: i would like to have this function included in my already excisting script: HTML Code:
using System; and maybe with the function included, that after one side has shot down a certain amount of AI planes(bombers), no bombers will spawn anymore.... i know i somehow ask for much, and if its sounding demanding in a way, i apologize, i can fully understand if you have better things to do |
1 Attachment(s)
Hm saw your edit to late, so i created a mission (in attachment) without your new wishes.
Next time you should create a new post, so i see if there is anything new. :( |
no worries Kodiak....
yeah i was just posting, when it came to my mind, that i should probably include all my wishes into one post, to save you workload,....unfortunately its now the other way round.sorry. but i will have a look at your mission now...maybe its enough for my squad training mission anyway... |
hey Kodiak, i tried your script, and it seems to work...
i put it into my mission, and adjusted the names of the spawnareas in the script, as well as the messages which pop up.everything works like a treat, even with more waypoints on one side! thank you very much, i think for now, this is perfect for my use....although if you have spare time and if you are in the mood, then i would really appreciate, if you could inlcude all my wishes from my above post,.....one day. Edit: now that i have my big yellow messages, i wonder how it is possible, to change the server messages.... i saw on some servers, that the normal messages like "AI SpitfireIa has been destroyed by...."(the small white ones, which appear if you killed someone or get killed) were adjusted..i dont know anymore on which server i saw this, but there the server was stating something like "...JG26_DavidRed kicked Ki SpitfireIa in the ass...." i will probably not use this phrase, but i think something more funny could be added than the default phrase... |
thx Kodiak again for your limitbirthplace script...works great even with more spawnpoints on one side...
the only thing now is, that if i have more than one spawnpoint on one side, then the message, warining that only 5planes are left on the one side, is dependent on each spawnpoint, and not on the total number of planes available on one side.... i would like to keep the messages, warning that one spawnpoint has only x planes left, but would like to have the message included, warning the team, if the total number of available planes is left to 5.... |
Change OnPlaceEnter to:
Code:
public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex) |
All times are GMT. The time now is 06:46 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.