Code:
//////////////////////////////
#include <acknex.h>
#include <default.c>
var mv_v1[3];
function move_ship() {
	while(1) {
		mv_v1.x = 10 * (key_w - key_s) * time_step;
		mv_v1.y = 6 * (key_a - key_d) * time_step;
		mv_v1.z = 0;
		 // move the player using the "W", "S", "A" and "D" keys; "10" = movement speed, "6" = strafing speed
		 c_move (ME, mv_v1, nullvector, GLIDE);
		 wait(1);
	}
}
function main() {
	level_load ("");
	wait(2);	// wait until the level is loaded
	vec_set(camera.x, vector(-500, 0, -10));
	ent_create("ship.mdl", vector(0, 0, 0),move_ship);
	ent_create("land.mdl", vector(-900,2000, -400),NULL);
}