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  
natalyasharapova

Init.c Doubt

Recommended Posts

Is it possible to replace a command in a class with init?

I have this doubt and I can not edit.....

For example

 

In Scripts have:

class ActionDestroyPartCB : ActionContinuousBaseCB
{
    override void CreateActionComponent()
    {
        m_ActionData.m_ActionComponent = new CAContinuousTime( UATimeSpent.DEFAULT_DESTROY );
    }
};

 

and I would like to modify it through init.c to:

class ActionDestroyPartCB : ActionContinuousBaseCB
{
    override void CreateActionComponent()
    {
        m_ActionData.m_ActionComponent = new CAContinuousTime( UATimeSpent.DEFAULT_DESTROY * 18000 );
    }
};

 

Is there a way to do this?
can anybody help me?

Share this post


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

×