GSC reference › Built-in
ASin()
Built-in (engine)
Server + client
Math
Returns an angle corresponding to a particular sin value
Signature
ASin(<sin value>)
Parameters
| Name | Required? | Details |
|---|---|---|
| sin value | Required | A sin value |
Example (from Treyarch's docs)
upAngle = ASin( upAmount )
Real uses in BO3's scripts
Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.
Related built-ins
- Sin()Returns the sin of an angle
- IsInArray()Searches an array to determine if a given value is present in that array
- IsInVehicle()Returns whether or not this player is currently occupying a vehicle.
- GetNodesInRadius()Gets all of the nodes (max of 256) within a cylinder, in unsorted order
- IsInt()Checks whether this entity/variable is an int
- IsInScriptedState()Checks if actor is in a scripted state (animscripted, custom, negotiation)
- IsInMoveMode()Returns true if the player is in either of the given move modes
- Target_IsInCircle()Returns whether a target is within a given radius from the center of the player's screen
- GetZBarrierPieceIndicesInState()Returns an array of integer indices of the zbarriers pieces that are in the specified state.
- IsUsingOffHand()Returns true if player is using offhand weapon
- GetNodesInRadiusSorted()Gets all of the nodes (max of 256) within a cylinder, sorted by closest to <origin>
- IsPosInClaimedLocation()Returns true/false if position is claimed by another sentient
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).