Entity::isInAngledArea: Difference between revisions
(yay) |
|||
| Line 20: | Line 20: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Entity_definition_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 17:58, 1 May 2024
Creates a spherical cone at origin that extends to surface with the angle specified. Then returns true if the entity is inside the spherical cone
Angle is measured in degrees.
These values are constant, most likely bogus:
p8 = 0, p9 = 1, p10 = 0
This method can also take two float<3> instead of 6 floats.
Syntax
entity.isInAngledArea(originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10);
Required Arguments
- originX: float
- originY: float
- originZ: float
- edgeX: float
- edgeY: float
- edgeZ: float
- angle: float
- p8: Boolean
- p9: Boolean
- p10: unknown (to be checked)
Return value
- Boolean
Example
// todo
See also
- Properties
- Functions
- Entity::applyForceTo
- Entity::applyForceToCenterOfMass
- Entity::attachTo
- Entity::attachToPhysically
- Entity::clearLastDamage
- Entity::destroy
- Entity::detach
- Entity::dist
- Entity::distSquared
- Entity::doesBelongToThisScript
- Entity::doesExist
- Entity::doesHaveDrawable
- Entity::doesHavePhysics
- Entity::forceAiAndAnimationUpdate
- Entity::forceStreamingUpdate
- Entity::freezePosition
- Entity::getAlpha
- Entity::getAnimCurrentTime
- Entity::getAnimTotalTime
- Entity::getAttachedTo
- Entity::getBoneIndexByName
- Entity::getCollisionNormalOfLastHitFor
- Entity::getCoords
- Entity::getForwardVector
- Entity::getForwardX
- Entity::getForwardY
- Entity::getHeading
- Entity::getHealth
- Entity::getHeight
- Entity::getHeightAboveGround
- Entity::getLastMaterialHitBy
- Entity::getLodDist
- Entity::getMatrix
- Entity::getMaxHealth
- Entity::getModel
- Entity::getNearestPlayerTo
- Entity::getNearestPlayerToOnTeam
- Entity::getObjectIndexFromIndex
- Entity::getOffsetFromGivenWorldCoords
- Entity::getOffsetFromInWorldCoords
- Entity::getPedIndexFromIndex
- Entity::getPhysicsHeading
- Entity::getPitch
- Entity::getPopulationType
- Entity::getQuaternion
- Entity::getRoll
- Entity::getRotation
- Entity::getRotationVelocity
- Entity::getScript
- Entity::getSpeed
- Entity::getSpeedVector
- Entity::getSubmergedLevel
- Entity::getType
- Entity::getUprightValue
- Entity::hasVariable
- Entity::getVariable
- Entity::getVehicleIndexFromIndex
- Entity::getVelocity
- Entity::getWorldPositionOfBone
- Entity::hasAnimEventFired
- Entity::hasAnimFinished
- Entity::hasBeenDamagedBy
- Entity::hasBeenDamagedByEntity
- Entity::hasBeenDamagedByAnyObject
- Entity::hasBeenDamagedByAnyPed
- Entity::hasBeenDamagedByAnyVehicle
- Entity::hasClearLosTo
- Entity::hasClearLosToInFront
- Entity::hasCollidedWithAnything
- Entity::hasCollisionLoadedAround
- Entity::isAMission
- Entity::isAnObject
- Entity::isAPed
- Entity::isAt
- Entity::isAtCoord
- Entity::isAttached
- Entity::isAttachedTo
- Entity::isAttachedToAnyObject
- Entity::isAttachedToAnyPed
- Entity::isAttachedToAnyVehicle
- Entity::isAVehicle
- Entity::isCollisonDisabled
- Entity::isDead
- Entity::isInAir
- Entity::isInAngledArea
- Entity::isInArea
- Entity::isInWater
- Entity::isInZone
- Entity::isOccluded
- Entity::isOnScreen
- Entity::isPlayingAnim
- Entity::isStatic
- Entity::isTouching
- Entity::isTouchingModel
- Entity::isUpright
- Entity::isUpsidedown
- Entity::isVisible
- Entity::isVisibleToScript
- Entity::isWaitingForWorldCollision
- Entity::playAnim
- Entity::playSynchronizedAnim
- Entity::processAttachments
- Entity::resetAlpha
- Entity::setAlpha
- Entity::setAlwaysPrerender
- Entity::setAnimCurrentTime
- Entity::setAnimSpeed
- Entity::setAsMission
- Entity::setCanBeDamaged
- Entity::setCanBeDamagedByRelationshipGroup
- Entity::setCanBeTargetedWithoutLos
- Entity::setCollision
- Entity::setCoords
- Entity::setCoords2
- Entity::setCoordsNoOffset
- Entity::setDynamic
- Entity::setHasGravity
- Entity::setHeading
- Entity::setHealth
- Entity::setInvincible
- Entity::setIsTargetPriority
- Entity::setLights
- Entity::setLoadCollisionFlag
- Entity::setLodDist
- Entity::setMaxHealth
- Entity::setMaxSpeed
- Entity::setMotionBlur
- Entity::setNoCollision
- Entity::setOnlyDamagedByPlayer
- Entity::setOnlyDamagedByRelationshipGroup
- Entity::setProofs
- Entity::setQuaternion
- Entity::setRecordsCollisions
- Entity::setRenderScorched
- Entity::setRotation
- Entity::setTrafficlightOverride
- Entity::setVelocity
- Entity::setVisible
- Entity::stopAnim
- Entity::stopSynchronizedAnim