I use engine.
How many value must I set in gravity?
PHP Code:
entity_set_int(c5_entity, EV_ENT_owner, id)
entity_set_int(c5_entity, EV_INT_solid, SOLID_BBOX)
entity_set_int(c5_entity, EV_INT_movetype, MOVETYPE_BOUNCE)
entity_set_float(c5_entity, EV_FL_gravity, 1.0)
Number 3, I mean I can set the entity on wall when the entity touches the wall. (The entity puts on the wall)
PHP Code:
register_touch("c5_entity", "func_wall", "fw_c5TouchWall")
PHP Code:
public fw_c5TouchWall(id, c5_entity)
{
if( ~get_entity_flags(id) & FL_ONGROUND )
{
new Float:fVel[3]
entity_get_vector(c5_entity, EV_VEC_velocity, fVel)
entity_set_vector(c5_entity, EV_VEC_angles, Float:{5.0, 1.0, 0.0})
}
}
EDIT: 1. SOLVED with what Connor said. 2. The entity lost. O.O