ObjectInteraction.GetImpactPoint C# (CSharp) Method

GetImpactPoint() public method

Gets the impact point location that will spawn when this object is hit.
public GetImpactPoint ( ) : Vector3
return Vector3
    public virtual Vector3 GetImpactPoint()
    {
        object_base item;
                item= this.GetComponent<object_base>();
                return item.GetImpactPoint();
    }

Usage Example

Ejemplo n.º 1
0
    public static void DestroyOrb(ObjectInteraction orbToDestroy)
    {
        //Spawn an impact
        Impact.SpawnHitImpact(Impact.ImpactDamage(), orbToDestroy.GetImpactPoint(), 46, 50);
        Quest.instance.isOrbDestroyed            = true;
        UWCharacter.Instance.PlayerMagic.MaxMana = UWCharacter.Instance.PlayerMagic.TrueMaxMana;
        UWCharacter.Instance.PlayerMagic.CurMana = UWCharacter.Instance.PlayerMagic.MaxMana;
        //000-001-133 The orb is destroyed
        UWHUD.instance.MessageScroll.Add(StringController.instance.GetString(1, 133));

        orbToDestroy.consumeObject();
    }
All Usage Examples Of ObjectInteraction::GetImpactPoint