Shrimple Pawns

Library

The classic entity pawn system... but in scene!

Small Fish updated 10mo ago 0 MB engine 22
thumb_up 4 open_in_new View on sbox.game
Shrimple Pawns

Shrimple Pawns

"no we won't allow pawn games" -garry

s&box library that provides support for the classic entity Pawn system. This is useful in cases where the player can take control of different controllers. For example, an FPS game where you have the regular player state but also a spectating state.

Example
// Inherit the pawn component.
//
// Make sure to provide the PawnAttribute with a path to a prefab
// if you decide to use the template version of AssignPawn.
[Pawn( "spectate.prefab" )]
public sealed class SpectatePawn : Pawn
{

}
then assign the pawn to the client!
// All of the following code should be called on the host! Since we use [HostSync] internally.
//
// Setup and assign the client a connection. Make sure this clientObj is already networked and has a client component attached.
var client = clientObj.Components.Get<Client>();
client.AssignConnection( channel );

// Give the client a pawn via one of the methods below.

// Option #1
// The pawn component MUST have PawnAttribute.
client.AssignPawn<SpectatePawn>();

// Option #2
// The pawn component does NOT need PawnAttribute in this case.
client.AssignPawn(SpectatePrefab);

// Option #3
// The gameobject already exists and you want to assign it
var obj = SceneUtility.GetPrefabScene( SpectatePrefab ).Clone();
client.AssignPawn(obj);
No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: fish.sp
Created: 2024-11-15 18:51 UTC
Updated: 2025-11-29 22:06 UTC
Type: library
Public: Yes
Version: 129601
files: 8
Size: 0.0 MB
Engine Version: 22
Asset Version ID: 129601
Version Created: 2025-11-29 22:06 UTC
Hash: -6208036888717997148
Manifest: Open manifest
new_releases Latest Update Nov 29, 2025
Changes on 2025-11-29
129601 Nov 29, 2025
Changes on 2025-11-29
129600 Nov 29, 2025
Changes on 2025-11-29
121616 Sep 29, 2025
Changes on 2025-09-29
121600 Sep 29, 2025
Changes on 2025-09-29
121598 Sep 29, 2025
Changes on 2025-09-29
88113 Feb 15, 2025
Changes on 2025-02-15
87524 Feb 14, 2025
Changes on 2025-02-14
87522 Feb 14, 2025
Changes on 2025-02-14
86784 Feb 8, 2025
Changes on 2025-02-08
86783 Feb 8, 2025
Changes on 2025-02-08
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.