Ah, that looks terrific!Everybody look at the Wiki page. http://www.garrysmod.com/wiki/?title...xpression_Gate
I'm working on a wiki page for the expression gate. As you can see I am writing a guide to the gate. Please help improving![/b]
(Especially "Syranide = God")
Yes, the expression gate is clocked using an external pulser instead of an internal as is the case with the CPU.Basically, I would hook it up to a pulser to simulate a frequency variable. It would check if the frequency was true, so if I had a ticktime of .001, it would have a frequency of 1000.
That's the reason I wanted to see if Input1 == 1 -> Input2 == 1 -> Out = 1; would work. So I can make something like
~Frequency ->
*rest of the Expression code*
To simulate the Frequency variable on the CPU.
Nevermind...[/b]
The way I do is like you describe there, although Frequency is slighty misleading because it implies a value... but anyway, yes that's how you do it if you would like it to run 1000 times per second, just know that the it is not possible to do it because the wirelib does not support it, I think you can do something like 50 per second at most (and there would be no reason to do otherwise either because no other component can work faster), a simple way of setting it up is using a timer instead as clock, as it would then update as fast as possible I believe.
And doing ~Clock would only update it when the clock has updated meaning that it won't speed up if the other inputs are changed.


LinkBack URL
About LinkBacks






Reply With Quote


re;overflow:auto'>

Bookmarks