BNM-Android icon indicating copy to clipboard operation
BNM-Android copied to clipboard

How to call game functions?

Open eternalfuture-e38299 opened this issue 1 year ago • 1 comments

I need to call a function in the game to perform an operation, which requires passing in an int value, but I am not sure how to obtain and call this function

eternalfuture-e38299 avatar Aug 12 '24 04:08 eternalfuture-e38299

This should answer your question If isn't what you want provide more infos The answer implies that the method you want call is in the same class of the method you are hooking so _this is the instance of the class, if isn't in the same class you should find a way to get an instance of it

Method<void> MethodName = Class("NameSpace",ClassName).GetMethod("methodname");
MethodName[_this](valueToPass);

nik2143 avatar Aug 15 '24 17:08 nik2143