Table of Contents

containerRayCast

( Point3F start, Point3F end, bitset mask, SceneObject exempt=NULL,exempt2,exempt3,exempt4,exempt5,exempt6 )Cast a ray from start to end, checking for collision against items matching mask.

If exempt is specified, then it is temporarily excluded from collision checks (For instance, you might want to exclude the player if said player was firing a weapon.) @returns A string containing either null, if nothing was struck, or these fields:

  1. The ID of the object that was struck.
  2. The x, y, z position that it was struck.
  3. The x, y, z of the normal of the face that was struck.

Syntax

string containerRayCast(Point3F %start, Point3F %end, bitset %mask[, SceneObject %exempt=NULL, __unk %exempt2, __unk %exempt3, __unk %exempt4, __unk %exempt5, __unk %exempt6]);

Parameters

Point3F %start
No description available.

Point3F %end
No description available.

bitset %mask
No description available.

[optional] SceneObject %exempt=NULL
No description available.

[optional] __unk %exempt2
No description available.

[optional] __unk %exempt3
No description available.

[optional] __unk %exempt4
No description available.

[optional] __unk %exempt5
No description available.

[optional] __unk %exempt6
No description available.

Return value

string
No description available.

Remarks

Examples

Source

Engine

See also

ClientBrickSearchNext
containerBoxClear
containerBoxEmpty
containerSearchCurrDist
containerSearchCurrRadiusDist
containerSearchNext
initClientBrickSearch
initContainerBoxSearch
initContainerRadiusSearch

References

Player::ActivateStuff: Add-Ons/Bot_Hole/packages.cs:495
AIPlayer::hDetectWall: Add-Ons/Bot_Hole/holes.cs:1568
fxDTSBrick::spawnHoleBot: Add-Ons/Bot_Hole/holes.cs:1739
hSpawnLOSCheck: Add-Ons/Bot_Hole/holes.cs:2009
hLOSCheck: Add-Ons/Bot_Hole/holes.cs:2028
AIPlayer::hAvoidObstacle: Add-Ons/Bot_Hole/holes.cs:2235
AIPlayer::hAvoidObstacle: Add-Ons/Bot_Hole/holes.cs:2279
AIPlayer::hAvoidObstacle: Add-Ons/Bot_Hole/holes.cs:2290
AIPlayer::hAvoidObstacle: Add-Ons/Bot_Hole/holes.cs:2298
AIPlayer::hAvoidObstacle: Add-Ons/Bot_Hole/holes.cs:2332
fxDTSBrick::VCE_relayCallFunction: Add-Ons/Event_Variables/server/outputs.cs:2534
fxDTSBrick::VCE_castRelay: Add-Ons/Event_Variables/server/outputs.cs:2563
GameConnection::spectateAutoCam: Add-Ons/Gamemode_Slayer/server/core/GameConnection.cs:767
redKeyImage::onFire: Add-Ons/Item_Key/server.cs:123
stealBasketball: Add-Ons/Item_Sports/basketball.cs:86
Player::isGroundedSport: Add-Ons/Item_Sports/basketball.cs:106
basketballLobCheck: Add-Ons/Item_Sports/basketball.cs:535
pickupSportBalls: Add-Ons/Item_Sports/support.cs:422
detectDoorDTS: Add-Ons/Support_LegacyDoors/conversion.cs:769
Player::ndFired: Add-Ons/Tool_NewDuplicator/scripts/server/images.cs:189
serverCmdGetID: base/server/scripts/allGameScripts.cs:5232
serverCmdGetTransform: base/server/scripts/allGameScripts.cs:5260
serverCmdWarp: base/server/scripts/allGameScripts.cs:5511
serverCmdDropPlayerAtCamera: base/server/scripts/allGameScripts.cs:5713
ServerCmdSetFocalPoint: base/server/scripts/allGameScripts.cs:5818
serverCmdRayPZ: base/server/scripts/allGameScripts.cs:6142
WeaponImage::onFire: base/server/scripts/allGameScripts.cs:9657
WeaponImage::onFire: base/server/scripts/allGameScripts.cs:9690
ProjectileData::radiusImpulse: base/server/scripts/allGameScripts.cs:10316
Player::ActivateStuff: base/server/scripts/allGameScripts.cs:12009
hammerImage::onFire: base/server/scripts/allGameScripts.cs:13280
hammerImage::onFire: base/server/scripts/allGameScripts.cs:13282
WrenchImage::onFire: base/server/scripts/allGameScripts.cs:13708
WandImage::onFire: base/server/scripts/allGameScripts.cs:15122
AdminWandImage::onFire: base/server/scripts/allGameScripts.cs:16251
fxDTSBrick::getSpawnPoint: base/server/scripts/allGameScripts.cs:25595
PrintGunImage::onFire: base/server/scripts/allGameScripts.cs:31024
Player::ActivateStuff: base/server/scripts/allGameScripts.cs:34311
GameConnection::onDeath: base/server/scripts/game.cs:946
GameConnection::onDeath: base/server/scripts/game.cs:947
GameConnection::onDeath: base/server/scripts/game.cs:948
GameConnection::onDeath: base/server/scripts/game.cs:949