Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Loading Submission on ingame trigger (http://forum.fulqrumpublishing.com/showthread.php?t=30438)

Nephris 03-13-2012 03:10 PM

Loading Submission on ingame trigger
 
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

Code:


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!

U505 03-17-2012 06:58 PM

ja jemand schaut rein.Doch programmierung ist ein schwerer bereich, die wahrscheinlich nur deutschen interessiert (deshalh schreibe ich auf deutsch):grin::grin::grin:.

NSU 03-18-2012 05:48 AM

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:

NSU 03-18-2012 05:39 PM

Quote:

Originally Posted by FG28_Kodiak (Post 400224)
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.


All times are GMT. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.