Jump to content
Sign in to follow this  
santafee

Timer.sqs Skript Problem

Recommended Posts

_time = _this select 0;

#Start

~1

_time = _time -1;

Hint format["Noch %1 Sekunden", _time];

if (_time >= 1) then {goto "Start"} else {};

Titletext ["","plain down"];

exit;

i start it with

[60] exec "Time.sqs"

In this guide, it says 60 secounds should count down to 0 now, but it only counts up with this: 60.224, 60.227 and so on..

Is something changed in ArmaII so this isnt working, or am i too stupid?

Share this post


Link to post
Share on other sites

Change _time to _timer and you should be sweet

_time is used ingame for mission running times..

_timer = _this select 0;
#Start
~1
_timer = _timer -1;
Hint format["Noch %1 Sekunden", _timer];
? _timer >= 1 : goto "Start";
exit;

Share this post


Link to post
Share on other sites

Thanks man, this worked:)

Oh and..is there a way to mute the Hint sound every Secound somehow?!

Share this post


Link to post
Share on other sites
Thanks man, this worked:)

Oh and..is there a way to mute the Hint sound every Secound somehow?!

hintsilent format

Share this post


Link to post
Share on other sites

nice! your good;-)

what i want to do with that timer...

if blufor is in a trigger area for more then 20 secounds, the trigger should go off.

but if blufor is out of the are within the 20 secounds, nothing should happen and everytime the area is "blufored" again, countdown.

do you have also an idea for that?

i just dont get how to leave the counter if i leave the area...Thanks!

Share this post


Link to post
Share on other sites

the trigger repeatable / countdown / MIN 20 - MID 20 - MAX 20 should work ok for that

Share this post


Link to post
Share on other sites

Sadly not in this case..

Heres exactly my plan.

Blufor plane fly´s in trigger, which execs 20 secounds countdown timer.sqs.

If the plane is not out in 20 secounds, Opfor plane gets 1 fuel and starts.

If Blufor leaves the Area in 20 secounds,no fuel for OPFOR plane and the timer starts over 20 secounds again if Blufors in the area.

i just need a condition in the timer.sqs, what says, if the blufor plane is out the trigger, stop the timer and OPFOR gets no fuel, if that works...

Edited by Himmelsfeuer

Share this post


Link to post
Share on other sites

not done this before..

try this might work - might not

trigger condition: "Land" countType thislist >0

This should only detect anything on the ground..

Share this post


Link to post
Share on other sites

Mh no not working like i want it to..

Thanks anyways, il try a way around it.

ok...i got a way to end the script, but its not working, why..=!

1. i made the timer [sfq] not [sqs], so i should be able to use "terminate timer" to end the skript in a new "BLUFOR NOT PRESENT-Trigger", bút it just dont end the skript, why?

Edited by Himmelsfeuer

Share this post


Link to post
Share on other sites

you just need to add a variable.

out=0 and place in an init box

in your trigger before the script is called add out=1

in deac put out =0

then modify the script

_timer = _this select 0;
#Start
if  (out==0) then {goto "exit2"};
~1
_timer = _timer -1;
Hint format["Noch %1 Sekunden", _timer];
if (_timer >= 1) then {goto "Start"} else {};
Titletext ["Fuelling","plain down"];
exit;

#exit2
Titletext ["Removefuel","plain down"];
exit;

Change the Titletext and put whatever code you want to set the fuel.

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
Sign in to follow this  

×