Hey, I have imported a large .mdl file and whish to change the CollsionBox to a polygon CollsionBox so that it conforms to the model. I have some screen shots of what I've done but havn't got it working yet.
http://www.virtualxistance.com/images/poly1.jpghttp://www.virtualxistance.com/images/poly2.jpgMaybe I have checked the wrong box?
or
Do I need to write a script file to activate the PolygonCollison?
Heres the source on it:
ACTION enemy_dummy {
my.shadow = on;
my.entity_type = 2;
my.enable_scan = on;
my.polygon = on;
WHILE (1) {
IF (my.hit_by_player == 1) {
my.move_x = player.move_x;
my.move_y = player.move_y;
my.move_z = player.move_z;
// move_mode = ignore_passable | glide; //replace c_move with these 2 lines in versions of gamestudio below 6.4
// ent_move(nullvector,my.move_x);
c_move(my,nullvector,my.move_x,use_aabb | ignore_passable | glide);
IF (player.animblend == blend || player.animblend < attack_a || my.animblend > attack_f) { my.hit_by_player = 0; }
}
IF (player.animblend >= stand && target_enemy == my && player_lock_on == 0) && (player.animblend < attack_a || player.animblend > attack_f) { target_enemy = null; }
IF (target_enemy == my && vec_dist(my.x,player.x) > 200) { target_enemy = null; }
wait(1);
}
}
}