Jump to content
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×