Jump to content

bma

Members
  • Posts

    584
  • Joined

  • Last visited

  • Days Won

    23

Posts posted by bma

  1. It is actually really simple to do. 

    either you can use the 

    int PlaySample(const char *File_);

    or the

    int PlaySample3D(const char *File_, const Vector &Pos_, bool looping_ = false);

     

    The first one is the super simple, it just plays the sound on the entire map. The seconds only plays it in a specific area(Usally on an object)

     

  2. Of course

    22 hours ago, itchboy said:

    I would like to ask for your blessing for me to make an LAX Airport submod out of this when the mod drops. I have plenty of unused game assets that would like to have a good home. I'll be asking some questions regarding how the code works, but other than that, I wont bother you at all.

    Of course you can

    • Upvote 2
  3. 4 hours ago, Pottyscotty said:

    Is it possible to change text colour at all on something such as a game hint or message group?

    I have a person who has a custom message group and I want one of the words they speak to be emphasized by green text. I seem to remember somewhere about colour codes for text, but can't find it anywhere.

    I think you have to do it in the base -> ui files, i dont think it is possible to change in the mod folder. But it is most likely in the 

     

    Edit: ... Ui folder

  4. 2 minutes ago, TACRfan said:

    I mean using the VCmddirectional lights command 

    Seems like a little weired workaround if you ask me. But sure it is possible. You just need to call it with a for loop

    GameObjectList gol = Game::GetGameObjects("NameOfTheVehicle");
        GameObject *go;
        for (int i = 0; i < gol.GetNumObjects(); i++)
        {
            go = *gol.GetObject(i);
            go->PushActionExecuteCommand(ACTION_APPEND, "VcmdDirectionalLightsOn", go, 0, false);
        }

    Something like that

  5. Short answer, yes it is possible. 

    I dont have my computer on me, but what you basicly want is to name the two vehicle the same thing and then use a for loop to call both of them at the same time. 

    The only major problem I can see with your idea is that it isn't possible for vehicles to redirect, it is only possible for persons. So it would be much easier if you changed your signs to be persons instead

  6. 11 hours ago, TACRfan said:

    When i am in game it doesnt say anything along the top, i edited the supervevents.xml and the events.xml

    It is because you also have to change the metastrings.xml file in the specs folder 

    As default all of the strings in it will look something like "lang:infotexts.xml".

    The one you want to be changed in your mod you have to change to "mod:Lang/eng/infotexts.xml"... of course for the correct strings, but you get the point

    • Upvote 1
  7. On 19/2/2016 at 6:48 AM, 14dog said:

    I have had a slight problem with this mod. I can run it fine, it loads properly and i can interact with items but as soon as i left-click the green or red button to set my status, it crashes to desktop. Does anyone know what causes this and how to fix it?

    Try to send your logfile after a crash, then we can see if there are any clues in it 

  8. Yes

    Its usually in your start folder together with a shortcut to the game. 

    If that isn't the case you can just make your own  

    1) Find your shorcut to the game
    2) Make a copy of it
    3) Right-click on it
    4) Choose Options
    5) Find Destination 
    6) Use the same desination but add - editor in the end
     

    For my version of the game it would look something like this

    Quote

    "C:\Program Files (x86)\sixteen tons entertainment\Emergency 4 Deluxe\Em4Deluxe.exe" -editor

    AND YES, you need to add -editor after it

    save, and there you go

    • Like 1
  9. if(Agerskov_hour > 7 && Agerskov_hour < 18)

    okay, lets take a basic lesson in if statements. 

    && means AND and || means OR. 

    your current if statement says: 

    Agerskov_hour > 7 && Agerskov_hour < 17 && Agerskov_minute == 0 && Agerskov_second < 4

    So what this means is that before the statement is true, all of the following criterias has to be true:

    - The hour has to be more than 7
    - The hour has to be less than 17
    - The minut has to be 0
    - The second has to be less than 4

    If just one of theese things are false it won't work. 

     

    What you are looking for is proberly something like
    - Hour is more than 7 
    - Hour is less than 18

    if(Agerskov_hour > 7 && Agerskov_hour < 18)
  10. //in the top of your script
    int Agerskov_hour;
    int Agerskov_minute;
    int Agerskov_second;
    
    //Just after void PushActions(GameObject *Caller, Actor *Target, int childID) {	
    Game::GetTime(Agerskov_hour, Agerskov_minute, Agerskov_second);
    
    //Whereever you need it after Game::GetTimer
    if(Agerskov_hour > 7 && Agerskov_hour < 17 && Agerskov_minute == 0 && Agerskov_second < 4)

     

×
×
  • Create New...