AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Throw player up into air. (https://forums.alliedmods.net/showthread.php?t=143174)

Gadzislaw007 11-15-2010 14:28

Throw player up into air.
 
I don't really know how can i use vectors. Could anyone say me how can set vector that will push player upward for 2 or 3 meters.

Exolent[jNr] 11-15-2010 14:40

Re: Throw player up into air.
 
This should help: https://forums.alliedmods.net/showthread.php?t=91474

Gadzislaw007 11-15-2010 14:54

Re: Throw player up into air.
 
PHP Code:

new Float:velocity[3];
velocity[0] = 0
velocity
[1] = 0
velocity
[2] = 800
set_pev
(idpev_velocityvelocity); 

This shall be enough to push player upward? Cause it doesn't work for me.

Bugsy 11-15-2010 16:04

Re: Throw player up into air.
 
Take a look at my bullet pogo plugin

TandborsteN 11-15-2010 16:20

Re: Throw player up into air.
 
Quote:

Originally Posted by Gadzislaw007 (Post 1350113)
PHP Code:

new Float:velocity[3];
velocity[0] = 0
velocity
[1] = 0
velocity
[2] = 800
set_pev
(idpev_velocityvelocity); 

This shall be enough to push player upward? Cause it doesn't work for me.

Uhm... ?
You know a FLOAT is an number with decimal in it.
To make your code work:

PHP Code:

new Float:velocity[3];
velocity[0] = 0.0;
velocity[1] = 0.0;
velocity[2] = 800.0;
set_pev(idpev_velocityvelocity); 


Gadzislaw007 11-15-2010 17:03

Re: Throw player up into air.
 
Yaa, forgot bout that.
Thanks :). My bad, again.


All times are GMT -4. The time now is 11:17.

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