Need help with creating a generator (4-27)

Create Variable named FUEL of type float set your default value say 1000
Create Variable named COSTPER type float set your default value for each cycle of tick say 0.001
Create Variable named RUNNING of type boolean set to false

E->FlipFlop->SetVisiblity true node drag wire and set variable RUNNING = true
E->FlipFlop->SetVisiblity false node drag wire and set variable RUNNING = false

Add Event Tick:
Add the Sequence Node
First sequence: Branch condition on RUNNING
true Subtract COSTPER from FUEL
false do nothing

Second Sequence: Branch condition on FUEL less equal 0
true drag wire to E->FlipFlop->SetVisiblity false node
false do nothing

1 Like