Jump to content
Korean Random
Sign in to follow this  
ahwa

Receiving isStrategic is true or false value

Recommended Posts

I have to determine whether it is StrategicControlMode

I can not find its interface

I like this code:

Data = {'IsStrategic': true}

def New_SuperGunMarker(self):
    Old__SuperGunMarker(self)
    global Data
    if self.__isStrategic == True:
        self.__gm1.reset()
        self.__gm2.reset()
        Data['IsStrategic'] = true
    if self.__isStrategic == False:
        Data['IsStrategic'] = false

Old__SuperGunMarker = _SuperGunMarker.reset

_SuperGunMarker.reset = New_SuperGunMarker

But they are not receiving true or false value

 

Please help me master!!

Edited by ahwa

Share this post


Link to post

Short link
Share on other sites

I have to determine whether it is StrategicControlMode

I can not find its interface

I like this code:

Data = {'IsStrategic': true}

def New_SuperGunMarker(self):
    Old__SuperGunMarker(self)
    global Data
    if self.__isStrategic == True:
        self.__gm1.reset()
        self.__gm2.reset()
        Data['IsStrategic'] = true
    if self.__isStrategic == False:
        Data['IsStrategic'] = false

Old__SuperGunMarker = _SuperGunMarker.reset

_SuperGunMarker.reset = New_SuperGunMarker

But they are not receiving true or false value

 

Please help me master!!

if BigWorld.player().inputHandler.ctrlModeName == 'strategic'
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
if BigWorld.player().inputHandler.ctrlModeName == 'strategic'

I know how to use the

Thank you very much

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...