help in entities
hi all, i want to do an model whenthe player is stunned, but doesn't appear
Code:
{
new origin[3];
new parm2[1];
new vec[3];
new Float:rsize[2][3] = { {-50.0, -50.0, -50.0}, {50.0, 50.0, 50.0} };
new Float:fOrigin[3];
new roots_ent = create_entity ( "info_target" );
new args[1];
get_user_origin ( id, origin );
parm2[0] = id;
get_user_origin ( id, vec );
fOrigin[0] = float ( vec[0] );
fOrigin[1] = float ( vec[1] );
fOrigin[2] = float ( vec[2] ) - 35.0;
entity_set_string ( roots_ent, EV_SZ_classname, "roots" );
entity_set_model ( roots_ent, "models/warcraft3/ensnare.mdl" );
entity_set_int ( roots_ent, EV_INT_body, 3 );
entity_set_int ( roots_ent, EV_INT_sequence, 0 );
set_size ( roots_ent, rsize[0], rsize[1] );
entity_set_origin ( roots_ent, fOrigin );
args[0] = roots_ent;
set_task ( ENSNARE_TIME, "Task_Destroy_Roots", 130+id, args, 1 );
return PLUGIN_CONTINUE;
}
well the player is stunned, he can't move, but the model doesn't appear. it was must be like this
http://img853.**************/img853/9...nabys0002d.png
|