Quantcast

Jump to content

» «
Photo

How To Make Detect Something

11 replies to this topic
Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#1

Posted 20 June 2014 - 06:37 AM

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" 


PlayPrey
  • PlayPrey

    string ScriptSkillLevel = "Low-Med";

  • Members
  • Joined: 02 Jul 2012
  • Norway

#2

Posted 20 June 2014 - 06:44 AM

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. ;)


Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#3

Posted 20 June 2014 - 06:55 AM

;) 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 


leftas
  • leftas

    unknown

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#4

Posted 20 June 2014 - 08:10 AM Edited by leftas, 20 June 2014 - 08:11 AM.

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.


Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#5

Posted 20 June 2014 - 08:23 AM

Bodyguard from my script

leftas
  • leftas

    unknown

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#6

Posted 20 June 2014 - 08:37 AM

So yea you only need to change Relation ships to ene. But still not sure how to declarate ene in your script...


Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#7

Posted 20 June 2014 - 10:38 AM

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

Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#8

Posted 20 June 2014 - 12:39 PM

Any Idea How To Do it? :D 


leftas
  • leftas

    unknown

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#9

Posted 20 June 2014 - 12:53 PM

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.


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#10

Posted 20 June 2014 - 02:19 PM Edited by LordOfTheBongs, 20 June 2014 - 02:22 PM.

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

  • leftas likes this

leftas
  • leftas

    unknown

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#11

Posted 20 June 2014 - 02:39 PM Edited by leftas, 20 June 2014 - 02:39 PM.

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.


Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#12

Posted 20 June 2014 - 04:22 PM

Bongs thanks it's complicated but it's AWESOME :D




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users