Jump to content
Sign in to follow this  
wyattwic

Modifying bullets via script

Recommended Posts

Hello everyone!

 

Todays question is on bullet information.

 

The fired event handler provides the ability to interfere with bullets via "(_this select 6)" however if the bullet is replaced with another round, its ownership information doesn't get delivered with the new shell.

 

Would anyone happen to have any information on the sub array for the bullet?  Given its short lifespan I am having a hard time figuring out what to change so that modified bullets provide proper "damage delt by" information.

 

 

Here is an example worded out, just in case my grammer went to hell -

Player 1 shoots at player 2 with a MXC.   Damage is recorded as being delt by Player 1.

Player 1 shoots at player 2 with a modified MXC that is delivering 155mm howitzer shells.  Damage is recorded as being delt by a unoccupied vehicle.

 

Now, a MXC that shoots 155mm arty is OP as hell, and the ragdoll is funny as hell, but you get the example.

 

Help is appricated!

Share this post


Link to post
Share on other sites

hey,

 

bulltets are a very special topic

 

killzonekid discussed this issue, may be interesting for you

 

http://killzonekid.com/arma-scripting-tutorials-fired-projectiles/

 

 

towards your problem: check the owner of the given projectile

https://community.bistudio.com/wiki/owner

 

you may have to set the ownership of the projectile to get right information in the hit eventhandler (but i'm not sure)

_projectile setOwner (owner _playerObject);

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×