Raised This Month: $ Target: $400
 0% 

Set vectors for entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
cpt.nemo
Junior Member
Join Date: Jul 2020
Old 07-23-2020 , 14:54   Set vectors for entity
Reply With Quote #1

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 ((


Last edited by cpt.nemo; 07-23-2020 at 15:04.
cpt.nemo is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode