[Feature request] HitscanFire trigger interaction

Absent83

Member
Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions
ShootableWeapon.cs

please add a parameter to control trigger interaction in method

private void HitscanFire(float strength)
in line 894
var hitCount = Physics.RaycastNonAlloc(.....)


namespace UnityEngine
{
/// <summary>
/// <para>Overrides the global Physics.queriesHitTriggers.</para>
/// </summary>
public enum QueryTriggerInteraction
{
/// <summary>
/// <para>Queries use the global Physics.queriesHitTriggers setting.</para>
/// </summary>
UseGlobal,
/// <summary>
/// <para>Queries never report Trigger hits.</para>
/// </summary>
Ignore,
/// <summary>
/// <para>Queries always report Trigger hits.</para>
/// </summary>
Collide,
}
}
 

Justin

Administrator
Staff member
Good thought - I added it a few weeks ago and will be in version 2.1.10. You'll also be able to hit triggers with melee weapons and DetectObjectAbilityBase abilities.
 
Top