When using the Projectile::spawnProjectile function, how do I assign an owner to the projectile? Let's say I wanted to spawn random projectiles from the sky, but I wanted the kills to count as my own. How would I do it?
Object: The projectile data block name to be spawned. Look in BaseProjData.cs for projectile names. Trans: The transform of the shooters weapon. ShootId: The Id of the shooter. Example: 8361. ShootVel: The velocity of the shooter. TargetObj: An object for the projectile lock-on and target. USED IN: Currently not used in any script files. RETURN: True if succeed or -1 if failed. Used to spawn a projectile.