Try it in this order:
Code:
ball = create_entity("info_target")
set_pev(ball, pev_classname, "ball")
set_entity_model(ball, "models/w_fb.mdl")
set_pev(ball, pev_body, random_num(1, 3))
set_pev(ball, pev_movetype, MOVETYPE_BOUNCE)
set_pev(ball, pev_solid, SOLID_TRIGGER)
set_pev(ball, pev_friction, 0.25)
set_pev(ball, pev_gravity, 1.0)
set_entity_size(ball, Float:{-6.0, -6.0, -6.0}, Float:{6.0, 6.0, 6.0})
set_entity_origin(ball, ball_position[0])
set_pev(ball, pev_nextthink, get_gametime() + 0.1)
When creating entities etc I usually leave the size and origin to last and never had any problems at all.
__________________