Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Kestrellius on December 13, 2018, 12:49:52 am

Title: How exactly does vector syntax work on the context of weapons.tbl?
Post by: Kestrellius on December 13, 2018, 12:49:52 am
I've been trying to use the +Offset option for particle spew. The wiki says the necessary syntax is "vector". What exactly am I supposed to put there? Integer and float both throw errors at me (required token "float") and keep the game from starting; putting in "float,float" also crashes, but tells me it requires "$name" or "#end".
Title: Re: How exactly does vector syntax work on the context of weapons.tbl?
Post by: Spoon on December 13, 2018, 01:04:46 am
Sometimes coders just assume the end user magically knows the same things they do.
I think vector here means
Code: [Select]
( Float Float Float ) x y z
Title: Re: How exactly does vector syntax work on the context of weapons.tbl?
Post by: Kestrellius on December 13, 2018, 01:28:34 am
Ah, okay. Thanks!
Title: Re: How exactly does vector syntax work on the context of weapons.tbl?
Post by: 0rph3u5 on December 22, 2018, 10:34:37 pm
Late arrival but:

I've been trying to use the +Offset option for particle spew. The wiki says the necessary syntax is "vector". What exactly am I supposed to put there?

To clarify what is meant by "vector":
https://en.wikipedia.org/wiki/Euclidean_vector#Overview

... it makes way more sense when you had non-Euclidean geometery at some point in your education; I don't blame you for not knowing, considering how much I hated Math 101 and Theoretical Chemisty during my first-first and first-third semester