Started by
guardtown4
on
Topic category: Troubleshooting, bugs, and solutions
I believe I found a bug. I made an entity which has a special ability that pulls the player toward them, however it doesn't work at all: https://imgur.com/ZSEtC9U
I tried moving the override motion block to the top of the code (outside of all the if statements) and also adding a print message for the player my entity was targeting; which confirmed that the entity was targeting the player. It seems that doing override motion vector on a player with a procedure triggered from an entity just doesn't work. The procedure is called every tick my custom entity is alive.
Update: I tried some other fixes and none of them worked either.. Such as making the override motion vector happen on the server-side (with the wait X ticks then on server-side do block), making a global variable for the player and the player has an on each tick procedure that does the override motion vector block when that global variable is set to true, and then after that just making a global variable for the map itself.
When I used a global variable, it just plain didn't change in the procedure that is called by my entity each tick.
This issue is super bizarre and I have no clue how I would work around it.
same...
ressurecting this cause same issue
3 years later and I am also having this issue. I hope there is a work around for it because I have a mod that has a skill that knock enemies up into the air and back down on the ground, It only works on mobs but not players sadly.
In some cases, overriding motion vector is not possible because something else also calls the method in the same tick, effectively overriding your call