Can't get logic_timer to work

Started by 4sdf
30/08/2017 20:47
Page 1 of 1
4sdf30/08/2017 20:47

I'm trying to use logic_timer for a simple loop like showing a text every second. It starts disabled, a trigger_multiple should enable it. For some reason I can't get it to work.

https://a.pomf.cat/cbxfhn.vmf

Expected Behaviour: Walk to the right, see text. Go back to spawn and walk forward, see text every second until walking out of the trigger.

Actual Behaviour: Walk to the right, see text. Nothing else.

Am I missing something?

Twize[k]30/08/2017 23:23

mby try env_hudhint instead game_text? i remember having issues with game_text in kzmod

Raptor 02/09/2017 20:17

The OnTrigger output from trigger_multiple fires constantly when a player is in the trigger, have you tried using that output to the game_text?

4sdf03/09/2017 00:03

Originally posted by Raptor 
The OnTrigger output from trigger_multiple fires constantly when a player is in the trigger, have you tried using that output to the game_text?


Is there a way to show debug info like what IO is going on? That would help me debug this in the future.

Your solution in combination with Delay before Reset seems to work practically for creating the kind of loop I was aiming for without using a hacky workaround so thanks for enabling me to continue. Technically that doesn't make logic_timer work so if someone could figure out and tell me why the trigger in front of info_player_start doesn't make any text show, the one on the side does though, this thread could be ended.

Raptor 03/09/2017 19:49(edited 03/09/2017 19:51)

Typing developer 2 into the console will let you see what entity IO is going on.

I suspect the issue is this:

When a game_text isn't set to all players mode, it needs to be Displayed by the player who would see it. When a trigger_multiple is activated, the player who activates it is sent to the game_text so it knows which player should see the text.

The logic_timer doesn't remember what player Enabled it, so when it fires it's output, the game_text doesn't know which player to show the text to so nothing happens. You could see if this is right by enabling the All Players flag for the game_text and seeing if the text constantly appears.

Page 1 of 1

Please log in to post replies.