Page 1 of 1
CWeapon
Posted: 11 Sep 2015, 12:25
by PicassoCT
Any objections to adding a call to syncedctrl:
Spring.SetUnitWeaponPieces(unitID,WeaponNr,MuzzlePiece,AimPiece)
It would be stored in CWeapon, and would be used instead of a call to unitscript once set.
Re: CWeapon
Posted: 11 Sep 2015, 13:30
by abma
(moved to feature requests forum)
Re: CWeapon
Posted: 11 Sep 2015, 19:51
by PicassoCT
Sorry was answered by jk .
This is not necessary, as QueryWeaponPiece is called during Firing a Projectile, Aiming a Weapon, and SlowUpdate.
It doesent show up in the profilings as wastefull. The proposed function call is useless.
Keep this thread for reference on future search or delete it.
Re: CWeapon
Posted: 12 Sep 2015, 13:47
by jK
PicassoCT wrote:The proposed function call is useless.
It would be a design decision.
But then all such "return a piece" callins would need such a set-function.
And i am too lazy to write those for all.