Jump to content

Pottyscotty

Sub-Moderator
  • Posts

    1,228
  • Joined

  • Last visited

  • Days Won

    13

Posts posted by Pottyscotty

  1. 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.

  2. 20 minutes ago, bma said:

    You take the Vehicle v (Caller); out of the if statement and put it beneeth "game::GetTime" and then you should change the if statement to something realistic :) the one i added was just to show some of the different elements :)

    Edit: dude you need to remeber {} around the code you want the if statement to include ;)

    Told you I was terrible at this stuff :D

    It's not crashing now although it doesn't seem to want to activate no matter what the time of day is. Are you able to explain how the timing works as I'm not sure what values mean what.

            void PushActions(GameObject *Caller, Actor *Target, int childID)
            {
                    Game::GetTime(Agerskov_hour, Agerskov_minute, Agerskov_second);
                    Vehicle v(Caller);
                    {
    		if(Agerskov_hour > 7 && Agerskov_hour < 17 && Agerskov_minute == 0 && Agerskov_second < 4)
                    		v.EnableTrafficLight(TLT_YELLOW);
                    		v.AssignCommand(CMD_WWTD_OFF);
                    		v.RemoveCommand(CMD_WWTD_ON);
                    		Audio::PlaySample3D(SND_TOGGLE, v.GetPosition());
    	}
            }
    };

     

  3. 59 minutes ago, bma said:

    I presume this isn't how to do an 'if' function either considering I get a different error (Symbol V not defined in current scope). I can't see anything different between mine and other if functions though apart from when they return false/true - Is this a requirement?

            void PushActions(GameObject *Caller, Actor *Target, int childID)
            {
                    Game::GetTime(Agerskov_hour, Agerskov_minute, Agerskov_second);
                    if(Agerskov_hour > 7 && Agerskov_hour < 17 && Agerskov_minute == 0 && Agerskov_second < 4)
                    	Vehicle v(Caller);
                    	v.EnableTrafficLight(TLT_YELLOW);
                    	v.AssignCommand(CMD_WWTD_OFF);
                    	v.RemoveCommand(CMD_WWTD_ON);
                    	Audio::PlaySample3D(SND_TOGGLE, v.GetPosition());
            }
    };

     

  4. Upon adding the second bit I get an error while loading the mod that says "Unrecognized Language".

     

            void PushActions(GameObject *Caller, Actor *Target, int childID)
            Game::GetTime(Agerskov_hour, Agerskov_minute, Agerskov_second);
            {
                    Vehicle v(Caller);
                    v.EnableTrafficLight(TLT_YELLOW);
                    v.AssignCommand(CMD_WWTD_OFF);
                    v.RemoveCommand(CMD_WWTD_ON);
                    Audio::PlaySample3D(SND_TOGGLE, v.GetPosition());
            }
    };

     

  5. 15 minutes ago, bma said:

    I don't think there is a way for you to check if the headlights are enabled or not. 

     

    Theese are all the possible light commands

    
    void EnableBlueLights(bool enable_);
    		bool IsBlueLightEnabled() const;
    		void EnableHeadLights(bool enable_);
    		void EnableBreakLights(bool enable_); // aus Kombatibilitätsgründen noch da
    		void EnableBrakeLights(bool enable_);
    		bool IsBrakeLightEnabled() const;
    		void EnableSpecialLights(bool enable_);
    		bool IsSpecialLightEnabled() const;
    		void EnableTrafficLight(TrafficLightType type_);
    		void EnableBlinker(BlinkerLightType type_);
    		BlinkerLightType GetBlinkerStatus() const;
    		void SetLightEnabled(int id_, bool enable_);

     

    Thanks, I was told the same somewhere else as well. One of the ways I was told I could do it was by getting the script to check the time and base it on that instead.

  6. 48 minutes ago, randomperson139 said:

    Don't know how twitch works... can you make the video available to watch after the event? I'll be working on Friday night...

     

    9 minutes ago, bma said:

    It is most certainly possible, i just need to find out how

    I don't know if you actually have to change any settings, since I don't actually use Twitch, just watch things on it, but you can view past streams on a persons channel. So I would assume that as long as it is set to do so, it will automatically be there when it has ended.

  7. 9 hours ago, MikeyPI said:

    As I said I have a feeling that it's related to people's browser's cache settings using the original (default) scheme because it's what is originally cached for it.  Mine saves as it's supposed to, but for example today (after my cache cleared) it reverted back to the default.  It does save the setting, but appears to be cache related as to why it seems to want to revert to the default setting.

    Apologies, didn't read through the whole topic and see that. I'll take a look at my settings and see if it's doing anything.

  8. On 1/24/2016 at 7:50 PM, MikeyPI said:

    You can change that yourself: See the paint brush @ the top of the menubar... That lets you pick your own colors for this theme, along with background settings etc.

    Regarding that, is it meant to save your settings? Since it puts it back to the default colours when I restart my browser. 

  9. 6 minutes ago, Stan said:

    Is there any reason Tapatalk is interesting? The new design supports mobile devices very well.

    Honestly the only reason I ever got it was for notifications when I was on mobile, even then I would just open up the chrome app and access the site from there.

    • Upvote 1
  10. thanks but i dont mean the sounds. i want to knoe how to enable more cars and people on the streets?

    You had asked why you could hear a lot of people and cars but not see many and I gave you an explanation as to why that may be. You didn't ask how to boost the spawn rate of vehicles (Which by the way I do not  have an answer for).

  11. I think the calm down time isnt about dispersing the riot, but rather the time it takes for the rioters to calm down once they start throwing molotovs. 'Molotov cock time' seems to dictate how quickly they start throwing molotovs at the intended target building.

    Alright, that would make a bit more sense. What about over time, does the event eventually fail?

  12. Apologies if it's in the wrong section, couldn't really decide which to put it in. Basically all I want to know is how the default Illegal Demonstration event works since I haven't ever had one on so long to know (And for some reason it's currently not activating).

     

    I know the chain of events is people gather then after a while will throw molotovs at a nearby building (If the ringleader is not arrested) but I wanted to know if after a certain amount of time (There is something called a 'Calmdown' period you can set in the parameters) the rioters will eventually disperse and the mission will be failed?

×
×
  • Create New...