Jump to content

CSLALUKI

CDLC Developer
  • Content Count

    464
  • Joined

  • Last visited

  • Medals

Posts posted by CSLALUKI


  1. No need to do it with triggers, remove them.. just put this into your init.sqf for example:

     

    // dialog will be shown only once, when you meet old man for the first time
    wasHere = 0;
    [] spawn {
    while {wasHere != 1} do {
    				waitUntil {(player distance2d oldman)<2}; 
    				oldman lookAt player;
    				oldman disableai "move";
    				wasHere = wasHere + 1; //the condition "wasHere != 1" will throw false next time
    
    				_handle = [] spawn {["OLDMAN", "Hello sir, if you go into the barn you will find"] spawn BIS_fnc_showSubtitle};
    				sleep 8;
    				_handle = [] spawn {["OLDMAN", "some things that might could help you with your mission."] spawn BIS_fnc_showSubtitle};
    				sleep 8;
    				_handle = [] spawn {["OLDMAN", "It is all we got, if you need anything else,"] spawn BIS_fnc_showSubtitle};
    				sleep 8;
    				_handle = [] spawn {["OLDMAN", "you have to find it somewhere else."] spawn BIS_fnc_showSubtitle};
    				sleep 8;
    				_handle = [] spawn {["OLDMAN", "Good luck, i have work to do.."] spawn BIS_fnc_showSubtitle};
    					};	
      			// some other code if wasHere is 1 => if the player come back
    		};

    Cheers!


  2. Is your trigger set to activate once ? This will not work on repeadetly activation. 

     

    Alternatively, you can do this:

    • put "activated" into condition field of tr6 (the end trigger) 
    • in tr5 activation field put "sleep 25; activated=true;" 

     

    When the tr5 will be activated, it'll sleep 25 seconds and end tr6 (the end one). 

     

     


  3. If you still need help, try this:

     

    First, make sure you have lines below in the GUI config:

    In my case:

     

    LUKI_myDialogTemplate.hpp

    class LUKI_myDialogTemplate
    {
    idd = -1; 
    movingEnable = false; 
    enableSimulation = true;
    objects[] = { }; 
    

    Note: I recommend to export the GUI in the config format (key shortcut Shift + Ctrl + S) while you're in GUI Editor.

     

    Second step is to define this GUI to the description.ext file ... so simply put on the first line:

     

    description.ext

    #include "dialoges\LUKI_myDialogTemplate.hpp"
    

    Then you can simply create/show this dialog where you want by this line (for example in the init.sqf):

     

    init.sqf

    createDialog "LUKI_myDialogTemplate";
    Hope this will solve your problem.  ;)

  4. Update Lite Version

    Changes:

    * Added automatic error report

    * Changed login mask slightly

    * Fixed upload process terminating at banlist entries shorter than 5 characters (Ver. A)

    * Added whitelist feature

    * Improved auto updater

    * Fixed crash when login server isn't reachable

    * Fixed write permission problems by requesting administrator privileges (Ver. A)

    Very good, thank you for your work! :yay:

×