View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:47 am



Reply to topic  [ 2 posts ] 
 How to acces curentry Weapon's shot? 
Author Message

Joined: Fri Nov 28, 2014 4:18 am
Posts: 2
Reply with quote
Post How to acces curentry Weapon's shot?
Hello. Nice to meet you.
I making a mod for shoot bullet from cursol pont.
I sucsessed shoot Next Inventory's explosive(i see Mr.cavecricket's script. thanks.)、
but i cant acsess curentry weapon's bullet.

any one know this? tanks.


Mon Dec 01, 2014 6:01 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: How to acces curentry Weapon's shot?
Use

Code:
gun.Magazine.NextRound


Properties you can access are:
Code:
Weapon.RateOfFire
Round.FireVel Override by setting AIFireVel (in m/s) on the Round.
Projectile.ClassName The AI may try to shoot through cover if MOPixel.
Projectile.Mass
Projectile.Sharpness
Projectile.GlobalAccScalar
Projectile.AirResistance
Projectile.AirThreshold
Projectile.Lifetime Override by setting AILifeTime (in ms) on the Round.

Source


Be sure to check if the magazine is not null first before you try to access NextRound or other properties.


Mon Dec 01, 2014 4:18 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.093s | 13 Queries | GZIP : Off ]