Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Finally add relative location directions

Open TheLimeGlass opened this issue 2 years ago • 1 comments

Description

Adds SkQuery's second main feature, relative locations between eachother. You can currently do this with vectors, but not the direction system. Adding this to Skript brings be sane again.

Cleaned up ExprDirection class too.

This allows for push player in the direction of player to target block

Note: I also attempted to apply away https://github.com/SkriptLang/Skript/issues/1671 but it's very hard as there is no defined relative reference when only defining away. I got it working for directions and blocks, but not entities. I'll maybe try another time, I don't know. My attempt was utilizing default expressions to bring in a reference like [%location/direction/entity%] but that can be used in very weird ways.

TheLimeGlass avatar Mar 30 '23 15:03 TheLimeGlass

Looks good, apart from the failing checks. Also, quick question, why the use of CollectionUtils.array here? Just wondering if it's a standard that should be used, and if so, why.

It looks cleaner, and was used by Njol for everything.

TheLimeGlass avatar Sep 01 '23 18:09 TheLimeGlass

Closing due to inactivity.

sovdeeth avatar Dec 15 '24 03:12 sovdeeth