boolean to destroy actor
HDIMapps
Member, PRO Posts: 18
Okay, in my level, the character is supposed to approach a gate (actor). If the scene attribute, GateUnlocked, is set to true, it is supposed to destroy itself. However, when I tested the level, the gate did not destroy. The rule says that both (1)it has to collide with the player (actor) and (2)GateUnlocked must be true. Under the do, it simply says "destroy".
Any ideas?
Should I just change the attribute to be an integer, rather than a boolean?
Comments
Can you post a screenshot of this rule.
let's see if this one is more zoomed in
Are you absolutely certain that the conditions setting "GateUnlocked" to true are correct?
If they are not setting GateUnlocked correctly that could be your culprit.
Are you constraining the position of the gate actor? This can negate collisions.
Also, are you certain the player character is tagged correctly?
Also make sure you are not trying to collide while interpolating. This will cause problems.
In this specific instance, the attribute is set manually. The gate destroyed on collision just fine before I added the GateUnlock requirement.
What do you mean by constrain the gate's position? The gate is not movable, if that's what you mean.
Scratch what I just said. I removed the gateunlock requirement and still having the issue. Weird, because it worked before. Hmm..
Solved. Apparently, a restart of the program was in order.