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

 A few beginner questions

 
nerozero  
Posted: Thursday, Apr 12 2012, 05:45
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 12, 2012

XXXXX



Hi all,

I have just discovered scripthook and have started making a few simple mods, I just have a few questions on some things I can't find.

1) How can I get the force vector of a bullet that has been fired?

2) Is there a way I can change the bullet, so for instance instead of firing a bullet it fires the spliff from the scripthook examples?

3) How can I move a peds body, so for instance if I aimed at a peds right arm could I get that ped to raise that arm?

4)And lastly and probably easiest how can I move an object, so if I have a vehicle how can i move it say 10 metres down the road, I see it has x,y,z but these are read only and I can't change them. Or can I just create a new Vector3 and set the position to this?

Thanks!
PM
  Top
 

 
nerozero  
Posted: Thursday, Apr 12 2012, 11:28
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 12, 2012

XXXXX



No one knows any answers to these?
PM
  Top
 

 
Fantaseb  
Posted: Thursday, Apr 12 2012, 17:16
Quote Post


One Nation, One Love, But Who? ;)
Group Icon
Group: BUSTED!
Joined: Oct 17, 2011

uk.gif

XXXXX



I will make a tut for the second file, as that has been patched and its harder to explain in text.
PM
  Top
 

 
AngryAmoeba  
Posted: Friday, Apr 13 2012, 02:39
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



I don't know about the first 3 questions, but I think you're right on #4. Just set the position to a new Vector3.
PM
  Top
 

 
nerozero  
Posted: Friday, Apr 13 2012, 08:02
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 12, 2012

XXXXX



Ok sounds good thanks, let me know when its done
PM
  Top
 

 
nerozero  
Posted: Friday, Apr 13 2012, 08:05
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 12, 2012

XXXXX



What I want to do is make a mod that lets you shoot like bullets that will stick peds to things. So you could hook a ped to a car or hook to a building. So i was thinking set the force of the player to the force of the bullet and then stick the hit bodypart. It doesn't sound too hard to do but dont know if I can reference a individual bullet to get its force etc
PM
  Top
 

 
nerozero  
Posted: Friday, Apr 13 2012, 08:07
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 12, 2012

XXXXX



And also how to check collision so I would know when the flying ped hit something and what it hit
PM
  Top
 

 

0 User(s) are reading this topic (0 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