Online
-
Content Count
16 -
Joined
-
Last visited
-
Medals
Posts posted by Online
-
-
It works fine now and i dont want to edit.
"Dont change a running system" ;)
Btw. i need the loop, because i have a virtual ammobox and the people should use every weapon and saved kits but only without the nv. Its a night mission and a lot more action if the people only use the lamp at the weapon.
-
Edit:
i improved this param like this:
description
class TimeOfDay
{
//paramsArray[0]
title = "Time of Day:";
values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"};
default = 16;
};
init
//Time of Day
definedTime = (paramsArray select 0);
skipTime definedTime;
With this method i can use more than two parameters for a mission. With the post in the top i can only use 2.
-
My problem was that i had two triggers with end1. Now it should work with my first post in this thread.
-
Okay just a second :)
---------- Post added at 19:24 ---------- Previous post was at 19:16 ----------
What the hell.. now the script doesnt work, i mean without the loop.
I use the same script like in the beginning and now it doenst work, how can that happend?
---------- Post added at 19:37 ---------- Previous post was at 19:24 ----------
Perfect!! Now it works fine. :D
I used this:
while {true} do {
{
if (side _x == east) then {
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
};
} foreach allunits;
{
if (side _x == west) then {
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
};
} foreach allunits;
Sleep 5;};
Really big thanks BangaBob!
-
while {true} do{
private [_x];
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
} foreach allunits;
Sleep 5;};
Now change
-
Yes now i see, my fault :)
---------- Post added at 19:06 ---------- Previous post was at 19:04 ----------
Now i have this:
while {true} do
{
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
} foreach allunits;
Sleep 5;};
But the script doesnt work now.
-
Thanks Mikie boy, i will change it.
I will try thy loop script.
And if i use this, how fast will work this loop? Instant if a player try to get the goggles?
-
i had _x for both before, and this works for both sides.
I know i have no loop included at the moment. I know that loop do nothing, because i ask how to loop this function.
-
Hi Guys,
i searched a loop function, but i am not sure what i need.
I have a script to remove the nvgoggles, but after the respawn everyone has again the goggles.
My .sqf
{
{
if (side _x == east) then {
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
};
} foreach allunits;
{
if (side _y == west) then {
_y unassignItem "NVGoggles";
_yremoveItem "NVGoggles";
};
} foreach allunits;
};
I have also a virtual ammobox on my map and the people should take the normal gear, but only without the nvgoggles. The script works fine and it should only repeat every 5 or 10 seconds maybe.
Regards
-
Hi Guys,
i saw a lot of explanations about time limit parameter for a TDM mission, but nothing works for me.
My description.ext
class Params
{
class TimeOfDay
{
//paramsArray[0]
title = "Time of Day:";
values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"};
default = 16;
};
class Timelimit
{
//paramsArray[1]
title = "Time limit:";
values[] = {0, 30, 300, 600, 900};
texts[] = {"Unlimited", "30sek", "5 min", "10 min", "15 min"};
default = 900;
};
class Score
{
//paramsArray[2]
title = "Score Limit";
values[] = {99999, 2, 10, 30, 50, 100};
texts[] = {"Unlimited", "2", "10", "30", "50", "100"};
default = 30;
};
};
And my init.sqf
//Time of Day
definedTime = (paramsArray select 0);
skipTime definedTime;
// Time Limit
timelimit = (paramsArray select 1);
estimatedtimeleft timelimit;
And my trigger ingame
Can anyone help me with this problem?
I tried before...
description:
titleparam1 = "Time limit:"; etc...
init:
estimatedtimeleft param1; etc...
... and this works fine, but with the paramarray i doesnt work.
Btw. the "time of day timer" works fine.
-
Mikie, what is the different between my description without class name and your descirption with class name?
i tried my 2 scripts with class names but it doesnt work and i dont saw the parameter button in the lobby.
-
Hi Silderoy,
maybe i have a solution for you time limit problem.
My description.ext
titleParam1 = "Time limit:";
valuesParam1[] = {0, 300, 600, 900};
textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min"};
defValueParam1 = 900;
My init.sqf
estimatedtimeleft param1;
And my ingame trigger
-
Hi Guys,
i searched already every thread about time parmeters, but i dont find a solution for my problem.
I want a parameter to set the time of day of the mission in the lobby.
My description.ext
titleParam1 = "Time limit:";
valuesParam1[] = {0, 300, 600, 900};
textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min"};
defValueParam1 = 900;
titleParam2 = "Time of Day";
valuesParam2[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
textsParam2[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"};
defaultParam2 = 16;
And my init.sqf
estimatedtimeleft param1;
skiptime param2;
I see both parameters in the lobby and the time limit parameter works fine. But every time i start the map, its 12:00.
Maybe anyone can help me to solve this problem?
---------- Post added at 23:41 ---------- Previous post was at 23:34 ----------
Okay... after i post this thread i find the solution.
I only need to set the ingame missiom time to 0:00 and now the parameter works.
I hope this will help other people. :)
-
Ich nebel selbst :D
---------- Post added at 11:28 ---------- Previous post was at 11:27 ----------
Loop .sqf
in ARMA 3 - MISSION EDITING & SCRIPTING
Posted
I think i use at first my method and if i will have cpu or other problems, i will try the other one.
Or i try this later, but for now it works. :)
But the tip with the VAS is really helpful.
Thanks to everyone!!!