Jump to content
Barba-negra

change of time only in one area

Recommended Posts

Good afternoon guys, it's a pleasure to say hello, I'm trying to make a scripts that allows you to change the time of the mission in one area and in another area it remains the same, I have managed to do it in a player through this scripts, but in a multiplayer it It has made me very difficult, is there any possibility of doing it?

 

Iniplayerlocal,sqf:

 

waitUntil{ !isNil "BIS_fnc_init" && time > 0 };

 

_trigger = trg02;

 

if ( player inArea _trigger ) then {
                        skipTime 12;
};

_trigger triggerAttachVehicle [ player ];
_trigger setTriggerActivation [ "VEHICLE", "PRESENT", true ];
_trigger setTriggerStatements ["this", "
                       skipTime 12;
", "
                       skipTime -12;
"];

 
 

Share this post


Link to post
Share on other sites

unfortunately there are no one.

In MP time is synced from server to every client in about 5 sec intervals.

If you for example need this for some time shift display effects just simulate it.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

@elthefrank since you add a similar question in another spot I suggest you read this http://killzonekid.com/arma-scripting-tutorials-locality/ you will understand better what can and can't be done locally. Also here you will find the commands sorted by locality https://community.bistudio.com/wiki/Category:Commands_by_effects_and_arguments_locality

  • Like 1

Share this post


Link to post
Share on other sites

I need to simulate the night when it is day, is that possible?

Share this post


Link to post
Share on other sites

I got it, the setApertureNew [1000, 1000, 1000, .1000]; puts you the view as if it were excellent night : D

Share this post


Link to post
Share on other sites

setAperture is "permanent" until you load/reload a mission, so you'll find that the effect remains in the editor if you are mission-building/testing. Haven't tested, but I assume it's the same for setApertureNew. You can reset it using setApertureNew [-1]; if that is indeed the case.

Share this post


Link to post
Share on other sites

excellent @Harzach I just tried it in multiplayer and it works perfectly, this is wonderful guys thanks for the help

  • Like 2

Share this post


Link to post
Share on other sites

It's handy for creating a dark room, as well.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×