Luduvo Contents
Theme
On this page

EventFieldType

the value type of one event table field

Constants

NameDescription
F3232-bit float field
I3232-bit integer field
U8byte field, 0 to 255
Boolboolean field
Vec3vector field
Colorcolor field, stored as bytes
EntityInstance reference field
Prefabprefab name field
Stringtext field, interned into the name table, 64 characters or less

Laying Out Typed Fields

Lifecycle: Server

Each field type fixes the width one column takes on the wire, so both sides pack and unpack a row the same way.

Luau
local ET = game.EventTablelocal CombatLog = ET("CombatLog", ET.ToClients, {	{ "attacker", ET.I32 },	{ "at", ET.Vec3 },	{ "damage", ET.F32 },	{ "critical", ET.Bool },	{ "weapon", ET.String }})CombatLog:Push(101, Vector3.new(0, 1, 0), 45, true, "Sword")