-
Posts
1,228 -
Joined
-
Last visited
-
Days Won
13
Content Type
Profiles
Forums
Calendar
Tutorials
Downloads
Gallery
Posts posted by Pottyscotty
-
-
That would work absolutely fine if you did so. If the file isn't in the mod it would be using the default one anyway.
-
Thanks for the explanation, all works perfectly!
-
4 minutes ago, Metel666 said:
Also, mass brawls, where riot vans are needed and paramedics, could that be a thing?
I think that's a Deluxe version event.
-
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
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()); } } };
-
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()); } };
-
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()); } };
-
27 minutes ago, Stan said:
Fixed your first post Anyone else having this issue, please report the topic and I'll take care.
Cheers Stan, works now
-
25 minutes ago, Stan said:
/\ Approved this post, just posting to make sure it gets read
Stan I'm trying to edit the first post on this topic but it just shows up blank, works fine on any other post I edit though. Has this been reported?
-
2 minutes ago, bma said:
yeah that would be a good way to do it
Do you need help trying to find it?
I'm not great at scripting at all and can only really edit basic things so yeah it would be a huge help!
-
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.
-
4 minutes ago, poole3003 said:
what is the most current version and also is there a link as well guys
The link is directly above your post..
- 1
-
I have a command that will turn on TLT_YELLOW however I want it so that it will not do so if the headlights are on, except I am not sure how to get about this.
Basically if the command is activated when the headlights are also on, nothing will happen. However if the headlights are off and you activate the command, it will work.
-
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.
-
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.
-
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.
-
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.
- 1
-
I have seen a few people use practically empty maps to test things out on and it would help with something I'm trying however what are the main requirements for a freeplay map to work since if you use a 100% empty map the game would just crash.
-
Ah awesome, cheers guys.
-
"somebody gave you reputation for a post in a topic: Kent (UK) Mod (Dev Release)"
Anyone know what this actually means (Since clicking the link just took me to the post and I couldn't see anything different)? Is it a replacement to the disused 'like' feature from the old forum?
- 1
-
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).
-
I don't have EM5 but if it's the same as EM4 then sounds don't get emitted directly from vehicles or people. Instead there is just some ambient soundtracks that feature things like talking or vehicles.
-
If I remember correctly I have failed the illegal demonstration once they start the fire and there are more than 10 casualties.
Alright, that's good. As long as it can end I should be okay.
-
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?
-
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?
Text Colour
in Modding Related Support
Posted
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.