Accessing m_pMainGlow and m_pGlowTrail

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Accessing m_pMainGlow and m_pGlowTrail

Postby Kami » Thu Jan 05, 2017 9:31 pm

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 :)
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: Accessing m_pMainGlow and m_pGlowTrail

Postby satoon101 » Thu Jan 05, 2017 10:19 pm

That's a bug in entities.classes. I'm working on it right now. Thank you for finding and reporting!
Image
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: Accessing m_pMainGlow and m_pGlowTrail

Postby satoon101 » Fri Jan 06, 2017 3:34 am

Ok, this should be fixed when build 523 is available. Thanks again for reporting this bug!
Image
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: Accessing m_pMainGlow and m_pGlowTrail

Postby Kami » Fri Jan 06, 2017 7:37 pm

I can confirm that it works perfectly now! Thank you very much
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: Accessing m_pMainGlow and m_pGlowTrail

Postby satoon101 » Sun Jan 08, 2017 12:36 am

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
Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 26 guests