Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
Asp3ct-Sigma

Need help referencing a class

Recommended Posts

Hi everyone,

im in the process of creating a helmet attached light that can only be seen when camera  IsCameraNV(). (basically an IR strobe)

i created my custom class extending Switchable_Base, calling a custom light class extending from PointLightBase. Set up the parameters etc, cool everything works.

Now i want to make it so,that the light can only be seen when  IsCameraNV(). by adding it to the objects OnWorkStart(), (this is my assumption on the what the correct approach would be)

however now i need to reference the class DayZPlayerCameraBase for it to recognize the camera related stuff.

How do a reference a class,that is not called directly in my class?

 

 

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×