Data Realms Fan Forums
http://45.55.195.193/

How to acces curentry Weapon's shot?
http://45.55.195.193/viewtopic.php?f=1&t=45866
Page 1 of 1

Author:  mojao [ Mon Dec 01, 2014 6:01 am ]
Post subject:  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.

Author:  CaveCricket48 [ Mon Dec 01, 2014 4:18 pm ]
Post subject:  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.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/