Has anyone figured out how to do either of these. Been trying can't really figure out a way i mostly need to make a light source of some type, but if anyone figured out how to make bullets too that would be great information. Hell i don't even know if it's possible to make either of these![]()
Creating bullets/lights
Discussion in 'Rust Development' started by ツンデレラ, May 29, 2017.
-
i know how to create/spawn rockets infront of your face ( followed from flying away of the rockets ofc)
i did try it out on bullets.,,, didnt worked out back then~ -
-
i use something like this for a rocket effect from player outward.
Code:void CreateRocket(BasePlayer player) { var startPoint = player.transform.position; var entity = GameManager.server.CreateEntity("assets/prefabs/ammo/rocket/rocket_fire.prefab", startPoint + new Vector3(0f, 1.4f, 0f), new Quaternion(), true); entity.GetComponent<ServerProjectile>().gravityModifier = 0f; entity.GetComponent<ServerProjectile>().speed = 30; entity.SendMessage("InitializeVelocity", (Vector3)(player.eyes.BodyForward() * 2f)); entity.Spawn(); return; }
-
-
Yep. thats what i ment with the rockets.
for bullets i didnt got that yet