Raised This Month: $ Target: $400
 0% 

set_user_velocity (was Is Das)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DevconeS
Member
Join Date: May 2006
Location: Switzerland
Old 08-08-2006 , 07:20   Re: set_user_velocity (was Is Das)
#2

set_user_velocity erlaubt Entities (unter anderem auch Spieler) sich in eine Richtung zu Bewegen.
Sagen wir mal du willst einen Spieler in die Richtung bewegen in die er gerade schaut, dann nutzt du dafür "velocity_by_aim".
Code:
new Float:vel[3] velocity_by_aim(id,32,vel) // 32 ist für die Distanz bzw. die Geschwindigkeit (je weiter Weg vom Entity, desto schneller) set_user_velocity(id,vel)
DevconeS 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 07:49.


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