Jump to content

SetPlayerChasecam: Difference between revisions

no edit summary
(3.1 is released, so Devfeature templates have been removed)
No edit summary
Tag: Source edit
 
Line 1: Line 1:
{{Template:ACSWarning}}
{{Template:ACSWarning}}
int '''SetPlayerChasecam''' (int ''player'', bool ''enable'')
bool '''SetPlayerChasecam''' (int ''player'', bool ''enable'')


==Usage==
== Usage ==
Enables or disables a player's chasecam cheat, which can also be toggled on or off by the [https://zdoom.org/wiki/CCMDs:Debug#chase chase] console command.
Enables or disables a player's chasecam cheat, which can also be toggled on or off by the {{Zdoomwiki|CCMDs:Debug#chase|chase}} console command.


==Parameters==
=== Parameters ===
*player: The number of the player.
* ''player'': The number of the player.
*enable: Set this to ''true'' to enable the chasecam, ''false'' to disable it.
* ''enable'': Set this to ''true'' to enable the chasecam, ''false'' to disable it.


==Return Value==
=== Return value ===
Returns 1 if the player's chasecam was successfully changed, 0 on failure (i.e. the player doesn't exist).
Returns true if the player's chasecam was successfully changed, false on failure (i.e. the player doesn't exist).


[[category:ACS Functions]]
== Examples ==
{{noexamples}}
 
== See also ==
* [[GetPlayerChasecam]]
 
[[Category: ACS functions]]