From 70f10f72b0ea731af513c9dd865f8d0867520246 Mon Sep 17 00:00:00 2001 From: Auronen Date: Thu, 18 Jan 2024 11:36:09 +0100 Subject: [PATCH] add zVEC3 class and fix effect position info --- .../zparserextender/classes/helperclasses.md | 11 +++++++++++ .../extenders/zparserextender/externals/wld.md | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/zengin/scripts/extenders/zparserextender/classes/helperclasses.md b/docs/zengin/scripts/extenders/zparserextender/classes/helperclasses.md index 796f5c2278..a68c5a84fc 100644 --- a/docs/zengin/scripts/extenders/zparserextender/classes/helperclasses.md +++ b/docs/zengin/scripts/extenders/zparserextender/classes/helperclasses.md @@ -18,6 +18,17 @@ class C_Color }; ``` +## zVEC3 +Represents 3D position in the world (float version for internal functions) +```dae +class zVEC3 +{ + var float X; // X coordinate + var float Y; // Y coordinate + var float Z; // Z coordinate +}; +``` + ## C_Position Represents 3D position in the world ```dae diff --git a/docs/zengin/scripts/extenders/zparserextender/externals/wld.md b/docs/zengin/scripts/extenders/zparserextender/externals/wld.md index 2c22d86ef2..3922117e58 100644 --- a/docs/zengin/scripts/extenders/zparserextender/externals/wld.md +++ b/docs/zengin/scripts/extenders/zparserextender/externals/wld.md @@ -56,7 +56,7 @@ func void Wld_PlayEffectAt( var string effect, ``` - `effect` - effect name -- `coord` - world coordinates (`C_Position`) to play the effect at +- `coord` - world coordinates (`zVEC3`) to play the effect at - `level` - effect level - `damage` - damage amount - `damage_type` - damage type