This forum is FULL of these examples you're asking 4

fex
http://www.opserver.de/ubb7/ubbthreads.p...true#Post410920

anyway...
Code:
function _cam_follow()
{
  vec_set(camera.x,   my.x);
  camera.pan  -= 0.6 * mickey.x;
  camera.tilt -= 0.6 * mickey.y;
  camera.tilt  = clamp(camera.tilt, -85, 85);
  vec_set(player.pan, camera.pan);
}

function _move_player()
{
 var dist_ahead, dist_side, simple_gravity;
 while(1)
 {
  dist_ahead     = (key_w-key_s)*time_step*4;
  dist_side      = (key_a-key_d)*time_step*4;
  simple_gravity = 10*time_step;
  c_move(me, vector(dist_ahead, dist_side, 0), vector(0,0,-simple_gravity), GLIDE|IGNORE_ME);

  _cam_follow();
  wait(1);
 }
}

action Shitty_Basic_Player()
{
 // player = me;
 // setup bbox here
  _move_player();
}

Edit: Not tested, but i guess it works.

Apply Shitty_Basic_Player to your player model in WED and use WASD to move.

Please transfer my +- 10000$ to my swiss bank account ^^
Greets

Last edited by rayp; 11/16/12 15:00.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;