![]() |
|
|
|
#1
|
|||
|
|||
|
To rotate a group.
For me this working: First uncheck "Rotate Group" then enable it, after that mark the group with ALT+Left Mouse then rotate the group with the numeric keypad, the center of rotation is the position of your Mouse-Arrow. Spawn a group of Planes without script: The trigger name and the action name, have to be the same. If your trigger has for example the name "SpawnAirgroup1" then you must named the action also "SpawnAirgroup1". You can also script a Mission with C# for example to spawn a the airgroup with a script Make a trigger with name "SpawnAirgroup1" and a action "Airgroup1" and insert following code in the script window. Code:
using System;
using maddox.game;
using maddox.game.world;
public class Mission : maddox.game.AMission
{
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);
if ("SpawnAirgroup1".Equals(shortName) && active)
{
AiAction action = GamePlay.gpGetAction("Airgroup1");
if (action != null)
{
action.Do();
}
GamePlay.gpHUDLogCenter("Spitfires near");
GamePlay.gpGetTrigger(shortName).Enable = false;
}
}
}
I've made tutorials about scripting in german (my english is to bad http://forum.sturmovik.de/index.php/topic,689.0.html http://forum.sturmovik.de/index.php/topic,695.0.html http://forum.sturmovik.de/index.php/topic,699.0.html http://forum.sturmovik.de/index.php/topic,711.0.html http://forum.sturmovik.de/index.php/topic,721.0.html http://forum.sturmovik.de/index.php/topic,727.0.html http://forum.sturmovik.de/index.php/topic,764.0.html |
|
#2
|
|||
|
|||
|
Quote:
Could someone who speaks German translate them please? |
|
#3
|
|||
|
|||
|
Wow. Unreal!
Thank you very much Kodiac! |
|
#4
|
|||
|
|||
|
~S~
Theme scripts looks now much more clear to me... Great find Kodiak, thnx for sharing, ~S~
__________________
![]() Asus P6T V2 Deluxe, I7 930, 3x2 GB RAM XMS3 Corsair1333 Mhz, Nvidia Leadtek GTX 470, Acer 1260p screen projector, Track IR 4 OS ver5, Saitek Pro Flight Rudder, Saitek X52, Win 7 x64 ultimate Last edited by _79_dev; 07-27-2011 at 07:25 PM. |
|
#5
|
|||
|
|||
|
Find? I've made them
|
|
#6
|
|||
|
|||
|
~S~
Sorry mate did't notice that on german forums... Thanks for theme scripts anyway, they looks juicy .. ~S~
__________________
![]() Asus P6T V2 Deluxe, I7 930, 3x2 GB RAM XMS3 Corsair1333 Mhz, Nvidia Leadtek GTX 470, Acer 1260p screen projector, Track IR 4 OS ver5, Saitek Pro Flight Rudder, Saitek X52, Win 7 x64 ultimate Last edited by _79_dev; 07-27-2011 at 07:23 PM. |
|
#7
|
|||
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|