Anytime i try to set position of an object. (In this case an Explosion Emitter) While multiple players are there. it seems to either Place the object at the previous position it was last placed in, or the position of another player who is not causing the action that causes the object to be placed. if anyone has a solution to this problem please leave it down below because it’ll probably save me from a few hours of trial and error.
Are multiple players attempting to set the position of a single object?
Are you attempting to explode the explosion emitter directly after setting its position?
Assuming you are only having 1 player set the position of the Explosion Emitter, then it should work just fine. As far as I am aware, after triggering the Set Position
chip, a signal will be sent to the authority of the object telling them to set the position for everyone else
If you are not the object authority of the explosion emitter and are triggering the explosion emitter instantly after setting its position, there is a high chance the explosion emitter will trigger at its “previous position”
This is because, like I said above, when triggering Set Position
, a signal is sent to the authority of the object who then sets the position of the object, where as when triggering Explosion Emitter Explode
, the local player sends a signal to everyone telling it to explode, exploding instantly
This to this chain happening:
- You send the signal to the object authority to set the position (This takes a few milliseconds because of ping)
- You send a signal to everyone to explode the explosion emitter (This happens instantly for you because you are sending it to yourself, 0 ping)
- You receive the signal to explode the explosion emitter
- You receive the new position of the explosion emitter from the Object Authority