View Full Version : Loading Submission on ingame trigger
Nephris
03-13-2012, 03:10 PM
Hi folks,
I am completely new to C#, having expieriences in scripting language of ArmA2 which is at the end sth completely different for me.
However, I read the posted tutorials, but i cant find an example on how to load a submission on an ingame trigger like Tdestroyed and Tpassthrough. And i lack of knowledge to write it myself on known tutorials.
Much appreciated would be a simple example.
FG28_Kodiak
03-13-2012, 03:25 PM
Kannst du die Frage nicht im deutschen Forum stellen :-P
using System;
using System.Collections;
using System.Collections.Generic;
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("missions/etc/etc/MissionName.mis");
GamePlay.gpGetTrigger(shortName).Enable = false; // to avoid second activation if passthru trigger
}
}
}
Nephris
03-13-2012, 03:59 PM
Schaut da noch jemand rein...?
Cheerz buddy, gonna give it a try!
ja jemand schaut rein.Doch programmierung ist ein schwerer bereich, die wahrscheinlich nur deutschen interessiert (deshalh schreibe ich auf deutsch):grin::grin::grin:.
scripting ist eng verbunden mit Mission bauen, darum ist das Forum hier sehr wichtig!
FG28_Kodiak
03-18-2012, 09:26 AM
Besonders meine PN - Box :rolleyes:
Besonders meine PN - Box :rolleyes:
Ja Kodiak was wäre ich ohne deine PN Box ;)
Nephris
03-19-2012, 05:24 PM
Well what comes around goes around ...
The initial post regarding the sense of a FMB scritping forum was related to the sturmovik.forum ....
But as always....
"Who knows reading is on the inside track"
However, as this is a english reading forum I suggest for courtesy sake, keep on posting in english language, and those who cant remain in the adress i referred before.
vBulletin® v3.8.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.