Client-side functions: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 873: Line 873:
* [[Player::clearParachutePackModelOverride|Player::clearParachutePackModelOverride()]]
* [[Player::clearParachutePackModelOverride|Player::clearParachutePackModelOverride()]]
* [[Player::setResetFlagPreferRearSeats|Player::setResetFlagPreferRearSeats(flags)]]
* [[Player::setResetFlagPreferRearSeats|Player::setResetFlagPreferRearSeats(flags)]]
* [[Player::getTargetEntity|Player::getPlayerTargetEntity(entity)]]
* [[Player::getPlayerTargetEntity|Player::getTargetEntity(entity)]]
* [[Player::setClothLockCounter|Player::setPlayerClothLockCounter(value)]]
* [[Player::setPlayerClothLockCounter|Player::setClothLockCounter(value)]]
* [[Player::enableSpecialAbility|Player::enableSpecialAbility(toggle)]]
* [[Player::enableSpecialAbility|Player::enableSpecialAbility(toggle)]]
* [[Player::getSprintTimeRemaining|Player::getSprintTimeRemaining()]]
* [[Player::getSprintTimeRemaining|Player::getSprintTimeRemaining()]]
Line 897: Line 897:
* [[Player::isBeingArrested|Player::isBeingArrested(atArresting)]]
* [[Player::isBeingArrested|Player::isBeingArrested(atArresting)]]
* [[Player::setWantedLevel|Player::setWantedLevel(wantedLeveldisableNoMission)]]
* [[Player::setWantedLevel|Player::setWantedLevel(wantedLeveldisableNoMission)]]
* [[Player::isFreeAimingAtEntity|Player::isPlayerFreeAimingAtEntity(entity)]]
* [[Player::isPlayerFreeAimingAtEntity|Player::isFreeAimingAtEntity(entity)]]
* [[Player::giveRagdollControl|Player::giveRagdollControl(toggle)]]
* [[Player::giveRagdollControl|Player::giveRagdollControl(toggle)]]
* [[Player::specialAbilityFillMeter|Player::specialAbilityFillMeter(p1)]]
* [[Player::specialAbilityFillMeter|Player::specialAbilityFillMeter(p1)]]
Line 935: Line 935:
* [[Player::setMaxArmour|Player::setMaxArmour(value)]]
* [[Player::setMaxArmour|Player::setMaxArmour(value)]]
* [[Player::isTargettingAnything|Player::isTargettingAnything()]]
* [[Player::isTargettingAnything|Player::isTargettingAnything()]]
* [[Player::isTargettingEntity|Player::isPlayerTargettingEntity(entity)]]
* [[Player::isPlayerTargettingEntity|Player::isTargettingEntity(entity)]]
* [[Player::setHasReserveParachute|Player::setHasReserveParachute()]]
* [[Player::setHasReserveParachute|Player::setHasReserveParachute()]]
* [[Player::setMayOnlyEnterThisVehicle|Player::setMayOnlyEnterThisVehicle(vehicle)]]
* [[Player::setMayOnlyEnterThisVehicle|Player::setMayOnlyEnterThisVehicle(vehicle)]]
Line 955: Line 955:
* [[Player::intToParticipantindex|Player::intToParticipantindex(value)]]
* [[Player::intToParticipantindex|Player::intToParticipantindex(value)]]
* [[Player::setAutoGiveParachuteWhenEnterPlane|Player::setAutoGiveParachuteWhenEnterPlane(toggle)]]
* [[Player::setAutoGiveParachuteWhenEnterPlane|Player::setAutoGiveParachuteWhenEnterPlane(toggle)]]
* [[Player::setClothPackageIndex|Player::setPlayerClothPackageIndex(index)]]
* [[Player::setPlayerClothPackageIndex|Player::setClothPackageIndex(index)]]
* [[Player::setSprint|Player::setSprint(toggle)]]
* [[Player::setSprint|Player::setSprint(toggle)]]
* [[Player::specialAbilityChargeNormalized|Player::specialAbilityChargeNormalized(normalizedValuep2)]]
* [[Player::specialAbilityChargeNormalized|Player::specialAbilityChargeNormalized(normalizedValuep2)]]
Line 970: Line 970:
* [[Player::setReserveParachuteTintIndex|Player::setReserveParachuteTintIndex(index)]]
* [[Player::setReserveParachuteTintIndex|Player::setReserveParachuteTintIndex(index)]]
* [[Player::arePlayerFlashingStarsAboutToDrop|Player::arePlayerFlashingStarsAboutToDrop()]]
* [[Player::arePlayerFlashingStarsAboutToDrop|Player::arePlayerFlashingStarsAboutToDrop()]]
* [[Player::setTargetingMode|Player::setPlayerTargetingMode(targetMode)]]
* [[Player::setPlayerTargetingMode|Player::setTargetingMode(targetMode)]]
* [[Player::isSpecialAbilityEnabled|Player::isSpecialAbilityEnabled()]]
* [[Player::isSpecialAbilityEnabled|Player::isSpecialAbilityEnabled()]]
* [[Player::setSneakingNoiseMultiplier|Player::setSneakingNoiseMultiplier(multiplier)]]
* [[Player::setSneakingNoiseMultiplier|Player::setSneakingNoiseMultiplier(multiplier)]]

Revision as of 08:34, 15 September 2017

Attention: work is still in progress. There still could be major changes in design of API.

Event functions

Vector3 functions

Entity (player, vehicle, object) functions

Player functions

Vehicle functions

Object functions

  • [[Object::disableGlow|mp.game.object.disableGlow

Pickup functions

Template:Pickup function c

Blip functions

Camera functions

Entity pool functions

WebBrowser functions

Key binding functions

Chat functions

  • Functions:
    • chat.push
    • chat.activate
    • chat.show
  • Properties:
    • chat.safe
    • chat.colors

Cursor functions

  • Properties:
    • cursor.visible
    • cursor.position

Nametags functions

  • Functions:
    • nametags.update
  • Properties:
    • nametags.enabled
  • Tutorials:
    • Nametag style customization (TODO)
    • Implementing custom nametags from scratch (TODO)

Storage functions

UI functions

Template:UI function c

Global functions

App

Audio

Brain

Cam

Controls

Cutscene

Datafile

Decisionevent

Decorator

Dlc1

Dlc2

Entity

Fire

Gameplay

Graphics

Properties:

Functions:

Interior

Itemset

Mobile

Object

Pathfind

Ped

Player

Rope

Script

Stats

Streaming

System

Time

Ui

Unk

Recorder

Vehicle

Water

Weapon

Worldprobe

Zone

Game Globals