![]() |
|
#1
|
|||
|
|||
![]() Quote:
Now that I think about it, I don't know what happens if I choose my army after the switch. It probably appears correctly then. Quote:
The reason that we can change spawn points by loading a new mission is because we can get all of the birthplaces and destroy them one by one, then let the ones in the new mission replace them. We can also create spawn points in code too, but I wanted to do that with a new mission because it was simpler. I'll try doing this tomorrow and see if it fixes my problem. |
#2
|
|||
|
|||
![]()
The method I used to delay the start of a flight is as follows. There could very well (and probably is) be a better way.
1. Create a trigger that fires after the desired amount of time in the FMB. 2. Create an action that spawns the aircraft you want in the FMB. 3. Put code like this in the script file. Specifically in the OnTrigger() method. Code:
public override void OnTrigger(int missionNumber, string shortName, bool active) { //call base classes OnTrigger method. base.OnTrigger(missionNumber, shortName, active); //if the trigger that was called is the trigger that we're looking for if (shortName.Equals("triggerName") && active) { AiAction action = GamePlay.gpGetAction("actionName")); if (action != null) action.Do(); } |
#3
|
|||
|
|||
![]() Quote:
Quote:
Later I think it will be possible to script removal of 1-2 af only. BTW the greatest solution would be to have bp side changed automatically if a submission loads new frontline leaving the bp to enemy! That would be an excellent piece of code! C# geniuses are called for help ![]() Quote:
![]() ![]() ![]() Where are you located? Last edited by Ataros; 05-18-2011 at 10:40 AM. |
#4
|
|||
|
|||
![]()
Attached my test mission.
Frontline moves in 1800 ticks then tanks clear the captured AF from remaining enemy arty. 2 spawnpoints are placed at the same spot. Do not work as intended yet iirc. |
#5
|
|||
|
|||
![]() Quote:
Quote:
![]() Salt Lake City, Utah, USA. Opposite side of the planet. ![]() |
![]() |
|
|