var y = b._id === 1 ? 200 : 100; y
I tried it that way, changed nothing. It always returns 100, no matter if the target is actor 2 or not. D:
I tried it that way, changed nothing. It always returns 100, no matter if the target is actor 2 or not. D:
Try:
Code:
y = b._actorId === 1 ? 200 : 100; y