Raised This Month: $ Target: $400
 0% 

Set vectors for entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 07-23-2020 , 17:41   Re: Set vectors for entity
Reply With Quote #2

Code:
    static Float:fVec[3];     pev(ent, pev_origin, fVec);  // Gets pev from the origin of the vector     fVec[2] = fVec[2] - 24.00; // Sets the new origin for the vector, float value     set_pev(ent, pev_origin, fVec); // Sets the pev for the new origin of the entity     // ****** UNTESTED THIS PART: ******* //     fVec[2] = fVec[1]; // Sets the vector to its initial pos     set_pev(ent, pev_origin, fVec); // Sets pev for the vector's entity

Also, see this post:
https://forums.alliedmods.net/showpo...0&postcount=30
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 07-23-2020 at 17:41.
Shadows Adi 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 13:55.


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