void _hold_fps_weapon()
{
set(my, PASSABLE | ZNEAR);
while(my){
// place weapon on screen
vec_set(my.x, camera.x);
vec_set(my.pan, camera.pan);
my.skill1 += time_step;
ent_animate(me, "idle", my.skill1, ANM_CYCLE);
if (mouse_left) swing_my_sword(); //fex attack now
wait(1);
}
}
action myPlayer(){
ent_create("sword.mdl", vector(my.x, my.y, my.z), _hold_fps_weapon);
}