S&box Wiki

DoPlayerDevCam

DoPlayerDevCam

What is a DoPlayerDevCam ?

It is a function which allows to block the devcam to the player.

Example

public override void DoPlayerDevCam( Client player ) { base.DoPlayerDevCam( player ); }

How to add an exception ?

An exception ? Yes for example if you are the creator of the gamemode you would have the possibility to put you in devcam mode.

  • SteamId - This called you steam id in steamID64 (Dec), you can find your steam id here : SteamIdFinder

Example

public override void DoPlayerDevCam( Client player ) { if ( player.SteamId != YourSteamIdHereIn64Dec) return; base.DoPlayerDevCam( player ); }

Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 25
Generate Html 0
SaveChanges (1) 6
Render Body 0
Render Sidebar 1