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.
CWeapon
Moderator: Moderators
Re: CWeapon
(moved to feature requests forum)
Re: CWeapon
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.
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
It would be a design decision.PicassoCT wrote:The proposed function call is useless.
But then all such "return a piece" callins would need such a set-function.
And i am too lazy to write those for all.