Raised This Month: $ Target: $400
 0% 

[Engine] entity_set_vector info.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CodingIsHard
Junior Member
Join Date: Jul 2015
Old 09-23-2015 , 09:28   [Engine] entity_set_vector info.
Reply With Quote #1

Long story short, i've been browsing the /api/ and .inc file and left with no explanation so probably one of you guys will help me out..

PHP Code:
entity_set_vector(iIndexiKey, const Float:vNewVector[3]); 
iIndex = player
iKey = ?
vNewVector = ? (read_data(1-3) ?)

Could any of you make an example on how to turn a player's view (and body/model) 20 degrees to left/right?

Last edited by CodingIsHard; 09-23-2015 at 09:31.
CodingIsHard is offline
CodingIsHard
Junior Member
Join Date: Jul 2015
Old 09-23-2015 , 12:03   Re: [Engine] entity_set_vector info.
Reply With Quote #2

Solved, sorry for wasting bytes.
CodingIsHard is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-23-2015 , 13:33   Re: [Engine] entity_set_vector info.
Reply With Quote #3

When you find the solution make sure to post it, it may help the others who have the same issue.
__________________
HamletEagle is offline
CodingIsHard
Junior Member
Join Date: Jul 2015
Old 09-25-2015 , 05:14   Re: [Engine] entity_set_vector info.
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
When you find the solution make sure to post it, it may help the others who have the same issue.
I was considering posting it but then i forgot since i had so little time.
This was the solution i managed to use for my function what i was looking for.

PHP Code:
new Float:vecViewAngles[3];
entity_get_vector(idEV_VEC_anglesvecViewAngles);
vecViewAngles[1] += float(20);
entity_set_vector(idEV_VEC_anglesvecViewAngles);
entity_set_int(idEV_INT_fixangle1); 
Hope it helps, whoever needs it.

Last edited by CodingIsHard; 09-25-2015 at 05:17. Reason: Goddamn grammar makes no sense.
CodingIsHard 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 22:26.


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