Page 1 of 1

Accessing m_pMainGlow and m_pGlowTrail

Posted: Thu Jan 05, 2017 9:31 pm
by Kami
Hey guys, I've got another question for you.
I'm trying to access the values m_pGlowTrail and m_pMainGlow on creation of any entity npc_grenade_frag. Dumping the datamaps showed me that those values in fact do exists but when I try to acces them I get this error for either of them:

Image

Now I'm wondering how I can access them (and I know they can be accessed as I'm porting a SM plugin which did).

Thanks :)

Re: Accessing m_pMainGlow and m_pGlowTrail

Posted: Thu Jan 05, 2017 10:19 pm
by satoon101
That's a bug in entities.classes. I'm working on it right now. Thank you for finding and reporting!

Re: Accessing m_pMainGlow and m_pGlowTrail

Posted: Fri Jan 06, 2017 3:34 am
by satoon101
Ok, this should be fixed when build 523 is available. Thanks again for reporting this bug!

Re: Accessing m_pMainGlow and m_pGlowTrail

Posted: Fri Jan 06, 2017 7:37 pm
by Kami
I can confirm that it works perfectly now! Thank you very much

Re: Accessing m_pMainGlow and m_pGlowTrail

Posted: Sun Jan 08, 2017 12:36 am
by satoon101
I added those datamap properties to our entity data. So, as of build 525, you can just use:

Syntax: Select all

main_glow = entity.main_glow
glow_trail = entity.glow_trail