So i was looking in npc core and i saw
This makes the effect of the gun firing, but no projectiles come out nor ammo consumed. Anyone have an idea of how to go apon this?Code:Effect.server.Run(attackEntity.attackFX.resourcePath, attackEntity, StringPool.Get(attackEntity.handBone), Vector3.zero, Vector3.forward, null, false);
Force fire weapons?
Discussion in 'Rust Development' started by ツンデレラ, Mar 31, 2016.
-
I can't be sure but you could do that, take 1 ammo from the gun, then find what ent the player is facing and damage it. This is without looking to see if there is a way to force fire via a hook.
-
Well mainly my goal is to actually get the bullets? should i just try to create the bullets with projectiles or something
-
Bumping this thread. Im also looking for a way to force a player to use the weapon he has in hand.
