![]() When used in an overlay, it retrieves the overlay's layer index. Gets the Z coordinate of a floor or ceiling at a specific set of coordinates.Ĭompares two actor pointers, returning true if they reference the same actor. Gets the spawn health property of the calling actor. Performs the same functionality as the ACS GetPlayerInput. Gets the gib health property of the calling actor. Gets the distance from the calling actor to a pointer. Gets the current crouch factor of a player if the player is a pointer. Gets the angle which an actor pointer can be found at. Similar to A_CheckProximity but returns how many of the actors are found instead of jumping. Gets the number of inventory items an actor is holding from a pointer and returns it to the expression. randompick) inside of action functions directly such as A_SetUserVar.Ĭhecks an actor's class name, returning true if it matches the passed parameter. They can be used just like expressions (i.e. These functions are not like regular DECORATE action functions. Shorter alias for ACS_NamedExecuteWithResult. Runs a named script and uses its return value. Calls to a random function with an identifier do not interfere with the RNG for calls with a different identifier, which can be used to make the outcome of some events unaffected by others. Useful for cases where an RNG may be used for purposes where total randomness is not wanted. When a specific number is set as seed, the random-number generator (RNG) will always produce the same numbers. Used if a guaranteed sequence of random numbers is desired. Similar to randompick but for float-point values. randompick(1, 4, 12, 16) will choose one of the four numbers. This can take an unlimited amount of parameters, i.e. Picks a number from the numbers placed in it. Returns a random floating point value between min and max. if 9 is used, the random results can be -, so it is advised to use as a mask values one less than a power of two, such as 1, 3, 7, 15, 31, 63, or 127. If no mask is provided, i.e, random2(), the maximum value of 255 is used instead. It is equivalent to (random() & mask) - (random() & mask). Returns a random integer value between - mask and + mask. Returns a random integer value between min and max. VectorAngle(user_x - user_x, user_y - user_y) Can be used to calculate an angle, for example, by passing coordinates to it. Like atan2, only with x first instead of y. Similar to atan, but used to get the quadrants the angles are in. Returns the hyperbolic cosine, sine, or tangent of x. Returns the inverse cosine, sine, or tangent of x. Returns cosine, sine, or tangent of angle x. Returns src within the range of min and max inclusively. Can take any amount of numbers, and can solve both ints and floats. ![]() Gets the largest value of all values listed. ![]() Gets the smallest value of all values listed. Rounds x down to the next closest integral value. Rounds x upward to the next closest integral value. Returns the common (base-10) logarithm of x. Returns the natural logarithm of x - the opposite of exp. Returns the base- e exponential function of x, which is e raised to the power x: e x. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |