C.Ritter 16 Posted September 29, 2021 Hello, so I was thinking of making a sort of Time Trial course however this black box is a little annoying when it doesn't go away after a few seconds. I was thinking if it was somehow possible to change the duration, I've seen this post Time Trial where i am referring to this black box, the script works perfectly..just need that little detail to hide it again. I did also see Hint Timer? where they refer to https://community.bistudio.com/wiki/hint though I don't really get the "Example 3", doesn't work on the trigger at least. EDIT:I've tried these combos: On Activation Quote startTime = time; hint "Go!"; sleep 5; Quote startTime = time; hint "Go!"; uisleep 5; Whatever i do with those a "Error generic error in expression" comes up I have also tried placing the sleep and uisleep (not together) in the On Deactivation Share this post Link to post Share on other sites
pierremgi 4906 Posted September 29, 2021 That's because the fields on a trigger are unscheduled, so you can't waitUntil or sleep without spawning the code. furthermore, waiting (sleeping) for nuts is useless. [] spawn { startTime = time; hint "Go!"; uisleep 5; hintSilent ""; }; deactivation has sense on repeatable trigger. No need to use it here. Anyway, as you didn't share the condition, no clue about what could be the deact. 1 Share this post Link to post Share on other sites
C.Ritter 16 Posted September 29, 2021 13 minutes ago, pierremgi said: That's because the fields on a trigger are unscheduled, so you can't waitUntil or sleep without spawning the code. furthermore, waiting (sleeping) for nuts is useless. [] spawn { startTime = time; hint "Go!"; uisleep 5; hintSilent ""; }; deactivation has sense on repeatable trigger. No need to use it here. Anyway, as you didn't share the condition, no clue about what could be the deact. The Time Trial will be repeatable, the condition box doesn't have anything other than "this" as default. Thanks for your help, however! Worked perfectly! 1 Share this post Link to post Share on other sites
pierremgi 4906 Posted September 29, 2021 condition this, refers to a preset condition (like BLUFOR PRESENT) . No other sense. For example a trigger none none with this as condition, never fires. 1 Share this post Link to post Share on other sites
C.Ritter 16 Posted October 4, 2021 On 9/29/2021 at 9:31 PM, pierremgi said: condition this, refers to a preset condition (like BLUFOR PRESENT) . No other sense. For example a trigger none none with this as condition, never fires. Dunno mate I've got it setup like this, Quote Start Trigger Condition: this On Activation: [] spawn { startTime = time; hint "Go!"; uisleep 3; hintSilent ""; }; Quote End Trigger Condition: this On Activation: [] spawn { finishTime = time; timeTotal = finishTime - startTime; result = [timeTotal] call BIS_fnc_secondsToString; hint format ["Time: %1 seconds",result]; uisleep 5; hintSilent ""; }; Works just like i want it to 🙂 1 1 Share this post Link to post Share on other sites
pierremgi 4906 Posted October 4, 2021 What is your trigger preset? condition this must refer to something like anyPlayer present or blufor present... 1 Share this post Link to post Share on other sites
C.Ritter 16 Posted October 4, 2021 12 minutes ago, pierremgi said: What is your trigger preset? condition this must refer to something like anyPlayer present or blufor present... Trigger: Activation Type: None Activation: BLUFOR Activation Type: Present Repeatable: Ticked Server Only: Unticked (For both triggers ^ Start/End Trigger) It works alright, no errors coming up, neither did it before. Was just more about how to add the timed message and make it disappear after some time which you showed me how to and works perfectly now 🙂 1 Share this post Link to post Share on other sites