AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Setting Player Velocity with angles (https://forums.alliedmods.net/showthread.php?t=210052)

TheKidz 03-05-2013 15:23

[Solved] Setting Player Velocity with angles
 
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 ?

SpeeDeeR 03-05-2013 18:27

Re: Setting Player Velocity with angles
 
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 


TheKidz 03-05-2013 18:32

Re: Setting Player Velocity with angles
 
U didnt understand what i talked about.

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

@edit: Nvm, solved it.


All times are GMT -4. The time now is 21:45.

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