Scripting/Squirrel/Functions/SetBackfaceCullingDisabled: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will enable/disable backface culling. Vice City enables it by default, that's why some objects around the map are not visible from all view angles. To better und...") |
No edit summary |
||
Line 1: | Line 1: | ||
This function will enable/disable backface culling. | This function will enable/disable backface culling. | ||
Vice City enables it by default, that's why some objects around the map are not visible from all view angles. | Vice City enables it by default (the function, not the backface culling itself), that's why some objects around the map are not visible from all view angles because objects are made of polygons that are separated in triangles and they are rendered in some angle. | ||
To better understand what it is supposed to do, try to disable it in your server. | To better understand what it is supposed to do, try to disable it in your server. | ||
Latest revision as of 19:07, 2 April 2018
This function will enable/disable backface culling. Vice City enables it by default (the function, not the backface culling itself), that's why some objects around the map are not visible from all view angles because objects are made of polygons that are separated in triangles and they are rendered in some angle. To better understand what it is supposed to do, try to disable it in your server.
Syntax
SetBackfaceCullingDisabled( bool )
Arguments
- bool toggle - true or false.
Example
function onScriptLoad()
{
SetBackfaceCullingDisabled( true );
}
Notes
Call onScriptLoad was used in this example.
Related Functions
- GetDeathmatchScoreboard
- GetDeathMessages
- GetDrivebyEnabled
- GetDriveOnWater
- GetFallEnabled
- GetFastSwitch
- GetFlyingCars
- GetFrameLimiter
- GetFriendlyFire
- GetGameModeName
- GetGamespeed
- GetGravity
- GetHour
- GetJoinMessages
- GetJumpSwitch
- GetKillDelay
- GetMaxHeight
- GetMaxPlayers
- GetMinute
- GetObjectCount
- GetPerfectHandling
- GetPickupCount
- GetPlayers
- GetServerName
- GetPassword
- GetShootInAir
- GetShowNametags
- GetShowOnlyTeamMarkers
- GetShowOnRadar
- GetSkinID
- GetStuntBike
- GetSyncFrameLimiter
- GetTaxiBoostJump
- GetTickCount
- GetTimeRate
- GetVehicleCount
- GetVehiclesForcedRespawnHeight
- GetWallglitch
- GetWaterLevel
- GetWeaponSync
- GetWeather
- ReloadScripts
- SetDeathmatchScoreboard
- SetDeathMessages
- SetDrivebyEnabled
- SetDriveOnWater
- SetFallEnabled
- SetFastSwitch
- SetFlyingCars
- SetFrameLimiter
- SetFriendlyFire
- SetGameModeName
- SetGamespeed
- SetGravity
- SetHour
- SetJoinMessages
- SetJumpSwitch
- SetKillDelay
- SetMaxHeight
- SetMaxPlayers
- SetMinute
- SetPerfectHandling
- SetServerName
- SetPassword
- SetShootInAir
- SetShowNametags
- SetShowOnlyTeamMarkers
- SetShowOnRadar
- SetStuntBike
- SetSyncFrameLimiter
- SetTaxiBoostJump
- SetTimeRate
- SetTime
- SetVehiclesForcedRespawnHeight
- SetWallglitch
- SetWaterLevel
- SetWeaponSync
- ShutdownServer