# WeaponEffectAt record struct

> Where IWeaponHolder.Effect plays an effect: at a point in the world facing a normal, or on an attachment of the weapon's own model.

Namespace `EvilEngine.Api.Weapons`, assembly `EvilEngine.Api`. Engine commit 4ff877b1.

```csharp
public readonly record struct WeaponEffectAt
```

Where [IWeaponHolder.Effect](/docs/api/iweaponholder#effect) plays an effect: at a point in the world facing a normal, or on an attachment of the weapon's own model.

```csharp
holder.Effect(charge, WeaponEffectAt.On("muzzle"));
holder.Effect(scorch, WeaponEffectAt.At(hit.End, hit.Normal));
```

## Members

### Point (property)

```csharp
public MapVector? Point { get; init; }
```

The point in the world, or `null` to play on an attachment.

### Normal (property)

```csharp
public MapVector Normal { get; init; }
```

The way the effect faces at its point, usually the surface's normal from a [WeaponTrace](/docs/api/weapontrace).

### Attachment (property)

```csharp
public string? Attachment { get; init; }
```

The attachment of the weapon's model to play on, or `null` for its muzzle: the record's `attachments.muzzle`, or `muzzle`.

### Muzzle (property)

```csharp
public static WeaponEffectAt Muzzle { get; }
```

On the weapon's muzzle, the default.

### At (method)

```csharp
public static WeaponEffectAt At(MapVector point, MapVector normal)
```

At a point facing a normal.

### On (method)

```csharp
public static WeaponEffectAt On(string attachment)
```

On a named attachment of the weapon's model.
