Anvil Scripting Reference
  • Getting started
    • Introduction
  • 🚀Examples
    • Create a speed overlay
    • Creating a Clock with ImGui
    • Calculating Distances Tool
  • ⚙️ User Settings
    • Make use of our settings API
  • 📦Namespaces
    • engine
    • player
    • key
    • mouse
    • memory
    • draw
    • ImGui
  • 🧪Types
    • Vec2
    • Vec3
    • Vec4
    • playerState
    • refDef
    • clientEntity
    • cg
    • usercmd
    • trace
    • dvar
  • 📄Enums
    • CmdButton
    • ImGuiWindowFlags
    • ImGuiStyleVar
    • ImGuiCol
Powered by GitBook
On this page
  • Properties
  • Vec4:new(x, y, z, w)
  1. Types

Vec4

A four dimensional vector

Properties

  • x - double

  • y - double

  • z - double

  • w - double

Vec4:new(x, y, z, w)

  • x - What to set x to

  • y - What to set y to

  • z - What to set z to

  • w - What to set w to (This is usually the alpha value of a color)

Constructs a new Vec4 with the provided x, y, z and w.

Example:

local red = Vec4:new(255, 0, 0, 255)

PreviousVec3NextplayerState

Last updated 2 years ago

🧪