![]() |
|
|
|
#1
|
|||
|
|||
|
Can anyone provide information regards how to use the Script Spawning feature and the function of the script text box?
|
|
#2
|
|||
|
|||
|
Quote:
http://forum.1cpublishing.eu/showthread.php?t=20995 |
|
#3
|
|||
|
|||
|
Cheers Madtommy, that will get me started (maybe that thread should be moved here).
|
|
#4
|
|||
|
|||
|
Passthrough and Time are working Ok as triggers to spawn airgroups but I am struggling with the following:-
1. Destruction of Ground Target or Ground Objects to trigger spawns. The targets/objects are recognsied in the menu but their destruction does not trigger the assigned Airgroup to spawn, (Script c enabled in AG properties) 2. From what I can see only Airgroups are available in the dropdown Action menu. Has anyon manged to get Ground units (armour) to spawn? Many thanks...... |
|
#5
|
|||
|
|||
|
Quote:
Code:
using System;
using maddox.game;
using maddox.game.world;
public class Mission : AMission
{
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);
if ("trigger".Equals(shortName))
{
GamePlay.gpPostMissionLoad("path to your mission files");
GamePlay.gpGetTrigger(shortName).Enable = true;
}
}
}
The script loads a submission with whatever units you want into your current mission based on trigger. I did not try it yet. Last edited by Ataros; 05-17-2011 at 03:20 PM. |
![]() |
|
|