Raised This Month: $ Target: $400
 0% 

Setting User Aim


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 04-23-2013 , 04:26   Setting User Aim
Reply With Quote #1

I have searched alot on setting user aims, I found this, but this doen't work. What am I doing wrong?

Code:
	new Float:fAngles[3]
	pev( 1, pev_angles, fAngles )
	fAngles[0] = fAngles[0] * 90
	set_pev( 1, pev_angles, fAngles )
devWaleed is offline
Send a message via Skype™ to devWaleed
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-23-2013 , 04:29   Re: Setting User Aim
Reply With Quote #2

Add this line in after what you have:
Code:
set_pev( 1, pev_fixangle, 1 );

Not sure why you are using 1 as index though? Are you testing on LAN?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 04-23-2013 at 04:29.
hornet is offline
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 04-23-2013 , 04:33   Re: Setting User Aim
Reply With Quote #3

Oops, Yes, Index is id not 1. It is actually working now,
So,

Code:
 set_pev( 1, pev_fixangle, 1 );
What does this do?

-Thanks.

Last edited by devWaleed; 04-23-2013 at 04:43.
devWaleed is offline
Send a message via Skype™ to devWaleed
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-23-2013 , 06:29   Re: Setting User Aim
Reply With Quote #4

Setting pev_v_angle and pev_angles only changes the value. pev_fixangle sets the value of pev_v_angle / pev_angles and changes the view / model accordingly.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 10:50.


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