Raised This Month: $51 Target: $400
 12% 

[Solved] Setting Player Velocity with angles


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheKidz
Senior Member
Join Date: May 2009
Old 03-05-2013 , 15:23   [Solved] Setting Player Velocity with angles
Reply With Quote #1

Well, i need to set players velocity with pre-defined angles...

Player touches the entity, entity move him to a predefined angle (like { 0.0, 90.0 }) so, his velocity is changed according to that angle.

Its basically trigger_push.

Any1 knows ?
__________________

Last edited by TheKidz; 03-05-2013 at 15:24.
TheKidz is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 03-05-2013 , 18:27   Re: Setting Player Velocity with angles
Reply With Quote #2

PHP Code:
/* Changes an angle vector into a vector. */
native angle_vector(const Float:vector[3], FRUFloat:ret[3]);

/* Used for angle_vector() *FRU/
#define ANGLEVECTOR_FORWARD      1
#define ANGLEVECTOR_RIGHT        2
#define ANGLEVECTOR_UP           3 
SpeeDeeR is offline
TheKidz
Senior Member
Join Date: May 2009
Old 03-05-2013 , 18:32   Re: Setting Player Velocity with angles
Reply With Quote #3

U didnt understand what i talked about.

I want to move the player without worrying about the angles.

@edit: Nvm, solved it.
__________________

Last edited by TheKidz; 03-05-2013 at 21:17.
TheKidz is offline
Reply



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 15:16.


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