IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 looking for advice, simple script

 
bordum RTP  
Posted: Friday, Jun 8 2012, 02:02
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 7, 2012

XXXXX



is it possible to make a script that can make a ped (a ped/body gurad that follows you) sit in a chair or go to a certain place


for example lets say i press a button and it
1)spawns 3 bodyguards/peds that follow you
now i press another button and
2)those peds sit in the nearest chair
and stay there unless i press another button that
3)makes them follow again

PM
  Top
 

 
Prof_Farnsworth  
Posted: Saturday, Jun 9 2012, 06:11
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (bordum RTP @ Friday, Jun 8 2012, 02:02)
is it possible to make a script that can make a ped (a ped/body gurad that follows you) sit in a chair or go to a certain place


for example lets say i press a button and it
1)spawns 3 bodyguards/peds that follow you
now i press another button and
2)those peds sit in the nearest chair
and stay there unless i press another button that
3)makes them follow again

Yes, entirely possible and rather simple. In order to have them sit in the nearest chair, however, you would need the object hash (identifier) of the chair, bench, etc to look for when they are to sit. This would be the only tough part.
PM
  Top
 

 
bordum RTP  
Posted: Monday, Jun 11 2012, 02:28
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 7, 2012

XXXXX



well i knows theres a script out there that already has that action for the player to sit in the nearest chair but its for niko to sit in the nearest chair, ( i think it was in one of the trainers) do you think its possible to get the code from the trainer and change it to make a body guard sit in the nearest chair?
PM
  Top
 

 
Prof_Farnsworth  
Posted: Monday, Jun 11 2012, 02:53
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (bordum RTP @ Monday, Jun 11 2012, 02:28)
well i knows theres a script out there that already has that action for the player to sit in the nearest chair but its for niko to sit in the nearest chair, ( i think it was in one of the trainers) do you think its possible to get the code from the trainer and change it to make a body guard sit in the nearest chair?

You could try to decompile them, but I imagine you would have varying degrees of success. As I said, the code is not difficult, it is having all the identifiers for the objects. After that I would presume it is just a matter of having them play the "sitting" animation at the location of the object. This is all off of the top of my head though.
PM
  Top
 

 
bordum RTP  
Posted: Monday, Jun 11 2012, 03:38
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 7, 2012

XXXXX



would it be easier to make the character stay at a certain location
for example instead of haveing the body guards follow you , make them go to a set of coordinates you give them and stay there untill you call them
PM
  Top
 

 
Prof_Farnsworth  
Posted: Monday, Jun 11 2012, 18:42
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (bordum RTP @ Monday, Jun 11 2012, 03:38)
would it be easier to make the character stay at a certain location
for example instead of haveing the body guards follow you , make them go to a set of coordinates you give them and stay there untill you call them

Easier in the fact that you wouldn't need object ID's, but still basically the same. Just direct them to a pre-determined location instead of the nearest seat, and you would not need any animation for them to just stand there.
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG