basic command blocks now working
This commit is contained in:
parent
220ca2886f
commit
52426368b1
15 changed files with 235 additions and 14 deletions
|
|
@ -37,10 +37,12 @@ func _process(delta):
|
|||
print("Tick: " + str(current_tick))
|
||||
for i in pedestals.size():
|
||||
if i+1 == current_tick:
|
||||
pedestals[i].mesh.mesh.material = pedestal_on_mat
|
||||
else:
|
||||
pass
|
||||
#pedestals[i].mesh.material
|
||||
var activated_pedestal = pedestals[i]
|
||||
activated_pedestal.mesh.mesh.material = pedestal_on_mat
|
||||
if activated_pedestal.has_command:
|
||||
print("broadcasting: " + activated_pedestal.placed_command.command_name)
|
||||
broadcast.emit(activated_pedestal.placed_command.command_name)
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue