|
Is there any use for this? Maybe to wait until stepped in every while loop to keep the loop synchronized with your scripts properly? |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
As far as I know it was used to make loops that could run every frame without a wait |
|
|
How about .Heartbeat?
Stepped runs every frame
Heartbeat runs in every frame in which Lua is ran
Wouldnt heartbeat be better? |
|
BAUER102Join Date: 2010-04-03 Post Count: 5936 |
Alternative to wait(0).
Also, this does belong into Scripting _ HELPERS _. |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
I don't know, I've never really used the either. And I've only just heard about this 'heartbeat' now. I know it exists in other games (for me, all the games that use the Source engine have it as far as I know), but I haven't known how to use it to it's best extent. |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
@BAUER (Sorry if I'm butchering you're name, I could only get a snapshot of it and I only remembered it for a tenth of a second),
Considering this has become a discussion to some extent, I would believe it will be OK here. |
|
|
Also, the wiki says these events are deprecated, but I guess they still work? |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
oh god grammar error in my post. "you're" should be "your"
I'm not saying BAUER was something, I'm talking ABOUT him. and it turned out I didn't butcher his name in any way. |
|
|
Stepped should be deprecated, but Heartbeat shouldn't. |
|
ParthaxJoin Date: 2011-04-27 Post Count: 6941 |
Would it be more efficient to use multiple coroutines with a while loop, or just Stepped?
❖ VOID Successor Parthax ❖ |
|
|