Raised This Month: $12 Target: $400
 3% 

Store a value of an entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 04-19-2018 , 08:57   Store a value of an entity
Reply With Quote #1

Hello, how can I store a value of an entity like angles of an "obj_sentrygun"?

https://ibb.co/c2Vi97

Last edited by Facksy; 04-19-2018 at 08:59.
Facksy is offline
sdz
Senior Member
Join Date: Feb 2012
Old 04-21-2018 , 14:15   Re: Store a value of an entity
Reply With Quote #2

These are called Entity Properties.
https://wiki.alliedmods.net/Entity_properties
PHP Code:
float angles[3];
GetEntPropVector(entityProp_Data"m_angRotation"angles); 

Last edited by sdz; 04-21-2018 at 16:02.
sdz is offline
Reply


Thread Tools
Display Modes

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 02:28.


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