-
-
Notifications
You must be signed in to change notification settings - Fork 452
Vectors + Push #6194
Copy link
Copy link
Closed
Labels
bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.The issue has been fully resolved and the change will be in the next Skript update.good first issueAn issue that would be good for a first-time contributor to make a PR forAn issue that would be good for a first-time contributor to make a PR forpriority: lowest"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements)."Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Description
Metadata
Metadata
Assignees
Labels
bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.The issue has been fully resolved and the change will be in the next Skript update.good first issueAn issue that would be good for a first-time contributor to make a PR forAn issue that would be good for a first-time contributor to make a PR forpriority: lowest"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements)."Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Type
Fields
Priority
None yet
Skript/Server Version
Bug Description
I was making a functioning item, when right clicked on it would loop all entities in 20 radius around player and push them away.
I got the base skript from a friend where it works for them, but for me, it would error and not work properly.
Ive tested with 1 entity and multiple
Multiple entities varies, from all being pushed, some being pushed, 1 being pushed and none being pushed
1 entity only varied in being pushed or not being pushed.
Expected Behavior
It was supposed to push all entities (Mobs + Players) away from the player using it
Steps to Reproduce
loop all entities in radius 20 around player: push loop-enity (direction from player to location of loop-entity) at speed 2^ Severe Error
loop all entities in radius 20 around player: set {_v} to normalized vector between player to loop-entity set loop-entity's velocity to {_v}^ Severe Error
loop all entities in radius 20 around player: set {_v} to vector between player to loop-entity set loop-entity's velocity to {_v}^ Now this one works, although not what my intention is for, since it pushes the entity the distance away you are from them
loop all entities in radius 20 around player: set {_v} to vector between player to loop-entity set vector length of {_v} to 2 set loop-entity's velocity to {_v}^ And doing this, although similar to the other one, when changing the vector length = Severe Error
Errors or Screenshots
https://paste.gg/p/anonymous/8951e87a444e4c6d96c62c9785dff869
Other
At first I thought it was an Addon, because why not. But after disabling/removing from plugins folder 1 by 1, the error still continued. After being fed up, I removed all addons, and the error still continued. Now I'm here....
Agreement