Hello!
I can't get try vectors for my entity.
I created entity. How do I tilt the top of entity where I'm looking? At the same time, the bottom of the entity remains in place. After a second, the top of entity returns to its original position?!
Code:
new Float:Velocity[3];
VelocityByAim(id, 1500, Velocity);
for(new i=0;i<3;++i)Velocity[i]*=-1; // odwrócenie zwrotów wektorów
entity_set_vector(Ent, EV_VEC_velocity ,Velocity);
///////////////////////////////////////////////////
/////////// odpowiedź na drugie pytanie: //////////
///////////////////////////////////////////////////
new Float:Velocity[3];
VelocityByAim(id, 1500, Velocity);
for(new i=1;i<3;++i)Velocity[i]*=-1; // odwrócenie zwrotów wektorów płaszczyzny poziomej
Velocity[0]=0.0; // wyzerowanie wektora wysokości
entity_set_vector(Ent, EV_VEC_velocity ,Velocity);
It's not working ((