gmqcc/tests/fieldfuncs.qc

14 lines
208 B
C++
Raw Normal View History

.float field;
.float getfield() {
return field;
}
void() main = {
entity e = spawn();
e.field = 42;
print(ftos(e.(getfield())), "\n");
.float memptr = getfield();
print(ftos(e.memptr), "\n");
}