So, I spent some time digging the assembly, but haven't found anything useful for my question, which is - if we can increase the lifetime of a bullet (for example). As u know, they are being despawned after some time, even if they didn't hit objects. I'm trying to make a plugin, which will make them stay alive until they hit something (And I know, it might cause performance issues, its just an experiment, ok?)
Increasing projectile's lifetime?
Discussion in 'Rust Development' started by pdr, Jun 7, 2018.
-
You can spawn similar projectile on death
-
-
-
Set the .drag and .gravityModifier each to zero. I know it works for rockets, because eventually a rocket in the sky gets too far and the game complains.
"Invalid Position: rocket_basic[10023061] (299.8, 4025.2, -727.7) (destroying)"
Also, have you noticed that the OnCreateWorldProjectile hook doesn't seem to trigger? At least for me.
Code:object OnCreateWorldProjectile(HitInfo info, Item item) { Puts("OnCreateWorldProjectile works!"); return null; }
-
As we found nothing - i think, that bullet is a part of weapon asset maybe.