mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-05 08:30:50 +00:00
14 lines
190 B
C++
14 lines
190 B
C++
|
.vector v1;
|
||
|
|
||
|
float set(entity e, float v) {
|
||
|
e.v1.y = v;
|
||
|
return e.v1.y;
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
entity e = spawn();
|
||
|
e.v1 = '1 2 3';
|
||
|
print(ftos(set(e, 42)), " => ");
|
||
|
print(vtos(e.v1), "\n");
|
||
|
}
|