X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=Introduction-to-QuakeC.md;fp=Introduction-to-QuakeC.md;h=684a2cdb81971bf9875f16a7ac51587d60ed6ab9;hb=e845b89c4872cbc73203f2f2aed0667176c58342;hp=2dea2c590c3f7f64f6c62ca7701027f8ed77d826;hpb=47450d8db544ac585c25e82f84bea4b0ce0c63ef;p=xonotic%2Fxonotic.wiki.git diff --git a/Introduction-to-QuakeC.md b/Introduction-to-QuakeC.md index 2dea2c5..684a2cd 100644 --- a/Introduction-to-QuakeC.md +++ b/Introduction-to-QuakeC.md @@ -276,6 +276,7 @@ string strcat(string a, string b, ...) = #115; The function/field syntax is ambiguous. In global scope a declaration can be a variable, field or function. In local scope, it's always a variable. The `var` keyword can be used in global scope to treat is as local scope (always declaring a variable). The following table shows declarations in global scope: | Example code | Meaning | +|--------------|---------| | `.float a;` | Entity field of type `float` | | `float(float x1) a;` or `float a(float x1);` | Function with a `float` param returning `float` | | `.float a(float x1);` | Function with a float param returning a `float` field reference |