Skip to content

Vector function that accepts a single argument #8265

@miberss

Description

@miberss

Suggestion

I'd like to suggest a simple overload on vector to allow for single number arguments to be accepted where, vector(n) = vector(n, n, n).

Why?

This is useful for developers who require all-n vector easier.

A possible use-case of a all-n vector would be display scale of a display.

I find myself writing this function commonly and it would be nice to have it in the base of Skript. It is also included in many other vector libraries as a common overload.

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request, an issue about something that could be improved, or a PR improving something.good first issueAn 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).

    Type

    No type

    Projects

    Status

    Planned Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions