Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

How To Make Detect Something


Rugz007
 Share

Recommended Posts

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

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

;) 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 ???? :):D

Link to comment
Share on other sites

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 :D 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 by leftas
Link to comment
Share on other sites

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

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

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

LordOfTheBongs

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 by LordOfTheBongs
Link to comment
Share on other sites

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 :D

 

Regards,

Paul.

Edited by leftas
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.