Rugz007 Posted June 20, 2014 Share Posted June 20, 2014 Guys I was wondering how can we make a script search a script in folder and decomplie it and then get the value of a spawned ped is declared as "ped1" Link to comment Share on other sites More sharing options...
PlayPrey Posted June 20, 2014 Share Posted June 20, 2014 I don't think scripthook can decompile scripts. I might be wrong though, try and look for a *.dll file you can include in your mod that will enable decompiling of scripts. I can take a look myself later. Link to comment Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Author Share Posted June 20, 2014 okay let me get you my idea in game my script will do this things : 1) it will load 2) it will search specific scripts in the scripts folder 3) it will do get mixed with the script 4) for eg. I spawned a enemy ped through a script name "test1.net.dll" script and so i will get the value like Ped ene = World.CreatePed(Player.Character.Position.Around(3f)); i want the "ene" to be declared in my script and when i press a key it will spawn bodyguard which would kill "ene" is it possible ???? Link to comment Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 (edited) I don't think scripthook can decompile scripts. I might be wrong though, try and look for a *.dll file you can include in your mod that will enable decompiling of scripts. I can take a look myself later. In this point you are right and wrong. Scripthook can't but C# can... Because when you inject to game it does all C# functions, you are not locked only to scripthook... And you said to him what to do But I will clarify what you said. @Rugz007 Yes but you would need to use Reflector.net API to decompile dll, and then search for what you want. So yea, it's possible. P.S. Bodyguard from your script or bodyguard from script you searching ? I got that you want to search for ene in another script yea ? Regards, Paul. Edited June 20, 2014 by leftas Link to comment Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Author Share Posted June 20, 2014 Bodyguard from my script Link to comment Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 So yea you only need to change Relation ships to ene. But still not sure how to declarate ene in your script... Link to comment Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Author Share Posted June 20, 2014 See leftas till now I have made..... a bodyguard and enemy in same script my simple idea is I want to make my bodyguard make a enemy ped attack which is spawned from other script OR I want to make him attack ene Link to comment Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Author Share Posted June 20, 2014 Any Idea How To Do it? Link to comment Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 Oh I thought I posted, so I think you need to wait @LordOfTheBongs I am sure he can help you. Because I am really not sure how to get that specific "ene". Regards, Paul. Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted June 20, 2014 Share Posted June 20, 2014 (edited) u can use script communication but im scared to explain it to u haha... do this first... when u downloaded the scripthookdotnet there was some folder in the bin folder that said test scripts, find the one that says script communication example and read it 100x and test it and u cant get a ped from another script using script communication if they did not bind a script command that would send the ped handle to your script... you would need to check peds in the game itself for conditions that match who ur looking for Edited June 20, 2014 by LordOfTheBongs leftas 1 Link to comment Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 (edited) u can use script communication but im scared to explain it to u haha... do this first... when u downloaded the scripthookdotnet there was some folder in the bin folder that said test scripts, find the one that says script communication example and read it 100x and test it and u cant get a ped from another script using script communication if they did not bind a script command that would send the ped handle to your script... you would need to check peds in the game itself for conditions that match who ur looking for Oh yea I forgot about ScriptCommunication... Sorry for missleading. Like I said I just back to c#/gta modding Regards, Paul. Edited June 20, 2014 by leftas Link to comment Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Author Share Posted June 20, 2014 Bongs thanks it's complicated but it's AWESOME Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now