Commands in The Phantom Pain’s lua files are typically used in the format of:
GameObject.SendCommand(gameObjectId, {id='commandName'})
e.g. to get a player’s vehicle type index do:
GameObject.SendCommand(vars.playerVehicleGameObjectId, {id='GetVehicleType'})
Commands are specific to a game object type, and to a specific instance or overall object of that type.
TppBear
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
SetAnimalId | name, animalId | |
SetEnabled | name, enabled | |
SetIgnoreDisableNpc | enabled | |
SetIgnoreNotice | isPlayer, isSoldier, isHostage | |
SetKind | name, fv2Index | |
SetRoute | name, route, nodeIndex |
TppBossQuiet2 (includes both boss Quiet and sniper Parasite Unit)
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
ClearFogRequest | time | no known lua reference |
DisableSnipePointIndex | snipeIndex | no known lua reference |
EnableSnipePointIndex | snipeIndex | no known lua reference |
FogRequest | density, time | no known lua reference |
GetActionStatus | NA | |
GetLifeStatus | NA | |
GetPosition | NA | |
GetQuietType | NA | |
Jump | position | no known lua reference hash: 8bcf42eb |
NarrowFarSight | enabled | |
ResetAI | NA | |
ResetBossQuiet2Flag | NA | |
ResetPosition | NA | |
RestoreState | state, index, rotY, isHandcuff | used in Cloaked in Silence |
SetAntiHeliRoute | route | used by Quiet if you call a chopper into the boss fight |
SetBossQuiet2Flag | flag, on | no known lua reference |
SetCombatGrade | defenseValue, offenseGrade, defenseGrade | |
SetCloseCombatMode | enabled | |
SetDemoRoute | route | route on death |
SetForceUnrealze | flag | |
SetFultonEnabled | enabled | |
SetHumming | flag | |
SetInvincible | enabled | |
SetKill | flag | |
SetKillRoute | route | |
SetLandingRoute | route | |
SetLifeRate | rate | no known lua reference |
SetMarkerEnabledCommand | enabled | |
SetNoiseNotice | flag | |
SetRecoveryRoute | route | |
SetRoute | route, phase | no known lua reference for TppBossQuiet2. Actually appears to be same as SetSnipeRoute |
SetRoutePointIndex | NA | likely dummied |
SetSightCheck | flag | |
SetSnipeRoute | route, phase | |
SetStealth | flag | |
SetVisibleHandcuff | visible | no known lua reference |
SetWatherFallShift | enabled | misspelling of waterfall shift. Used in Code Talker to reposition parasite unit |
SetWithdrawal | enabled | no known lua reference |
ShootPlayer | NA | no known lua reference hash: 3a974476 |
ShootPosition | position | no known lua reference hash: 50548397 |
StartCombat | NA | |
StartDeadEffect | NA | |
WarpRequest | pos, rotY |
TppBuddyDog2
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
GetPlacedItem |
index |
called when Snake picks up placed items |
GetPlant |
uniqueId |
called when Snake picks up plants |
LuaAiStayAndSnarl |
position, useMarker, look, dash, warp, ignoreMarker |
|
LuaAiStayAndSnarl |
position, useMarker, look, dash, warp |
possibly defunct version of the above |
SetActionCommand |
useNav, destinationPosition, rotationDegreeY, toPlayer, relayPoints, speedType, phaseType, keyActionType, keyActionParam, subActionType, subActionParam |
no known lua reference. Many other associated strings - possibly they are keys in a table. Associated with keyActionParam: stance, face, position, rotationY, degRotationY, targetAngleY, actingTime, noNoise, force, actionType Associated with subActionParam: lookType, isBlurred, targetPosition |
SetEnabled |
enabled |
|
SetMode |
mode |
likely accepts TppBuddyDog.MODE_COMMAND or TppBuddyDog.MODE_NORMAL (1 and 0 respectively). No known lua reference |
SetMotherBaseCenterAndRadius |
center, radius |
used in the walking D-dog sequence at Mother Base |
SetQueueEnabled |
enabled |
no known lua reference. hash: bbde553f possibly also InitiateChangeVehicleSeatLeft |
SetWaitTime |
frame, time |
presumably sets time DD waits. Time can be given either in frames or seconds? |
SetWarpPosition |
pos |
|
WarpCommand |
stanceType, rotationDegreeY, playerIndex, rotationY, degRotationY, position |
No known lua reference |
TppBuddyQuiet2
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
90ef1e9 |
distance |
|
1501783b |
stance |
possibly SetForceIDot2R |
5397f767 |
targetId |
|
94e6d8cd |
targetId |
|
bcbaa88b |
position, rotationY, index |
possibly SetRideStartOutOfManually |
d802facb |
NA |
|
f176bc2e |
position, delayTime |
possibly InitializeEventCautionRouteRain |
EnableAim |
enable |
no known lua reference |
EnableAnnounceLog |
enable |
no known lua reference hash: 35073206 |
EnableAutoCombatMove |
enable |
no known lua reference hash: 685cc719 |
EnableDying |
enable |
|
EnableEscape |
enable |
no known lua reference |
EnableFire |
enable |
no known lua reference |
EnableHumming |
enable |
no known lua reference |
GetPosition |
NA |
|
GetStatus |
NA |
|
Hello |
index |
no known lua reference hash: 1561a38a |
MoveToPosition |
position, rotationY, disableAim, index |
|
RequestRideHeli |
NA |
no known lua reference |
RequestSupplyFlare |
NA |
used in a Quiet Exit |
SetActionCommand |
destinationPosition, toPlayer, relayPoints, speedType, keyActionType, keyActionParam, subActionType, subActionParam |
no known lua reference. Many other associated strings - possibly they are keys in a table. Associated with keyActionParam: stance, face, rotationY, degRotationY, actingTime, actionType Associated with subActionParam: isStopOnly, lookType, targetPosition |
SetBruise |
enable |
no known lua reference hash: ba46f702 possibly SetSecondaryAreaBuddyQuiet2 |
SetDownIdle |
enable |
|
SetEscapeTime |
time |
no known lua reference |
SetLife |
life |
|
SetMarkerEnabledCommand |
enabled |
|
SetRelayPoint |
position |
no known lua reference |
SetScriptAiEnabled |
enabled |
no known lua reference hash: ebad07cf |
SetShootStance |
stance |
no known lua reference hash: 80ceae92 |
SetStrongMode |
mode |
no known lua reference hash: 77fe5027 |
WarpCommand |
stanceType, playerIndex, rotationY, degRotationY, position |
No known lua reference. stanceType accepts value "Squat", else defaults to standing? |
WarpToPosition |
position, rotationY |
TppBuddyPuppy
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
CallSe | seId, position | no known lua reference. Se may stand for sound effect? |
SetEnabled | enabled | |
SetFova | fv2Index | |
SetFultonEnabled | enabled | |
SetLocatorArea | radius | no known lua reference |
SetRoute | route, nodeIndex |
TppCommandPost2
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
d011cfb |
NA (?) |
possibly SetItemDropSourceGimmickLocatorName, SetMvarsOfRainRouteInit EraseNoTelop |
d247ad0 |
locatorName |
possibly AssignForceFrontLine, SetCombatLocatorMemberHideIcon |
6f21ecdc |
NA (?) |
|
77e31c45 |
NA (?) |
|
9640311a |
NA (?) |
|
9da02c05 |
locatorName |
possibly AssignDefaultInactive |
d1b64e6d |
NA (?) |
|
e7a4ea4f |
locatorName |
|
f46836cb |
use |
|
AssignInterrogation |
messageId, index |
|
AssignInterrogationWithVoice |
soundParameterId, index |
appears in TppInterrogation.lua but not used to my knowledge |
AssignInterrogationCollection |
NA |
|
AssignMemberRoleInLocator |
locatorName, soldier2GameObjectId |
|
AssignMemberRoleInCombatLocator |
locatorName, soldier2GameObjectId |
no known lua reference hash: c7ac540d |
AssignSneakRouteGroup |
group, soldiers |
|
AssignVipInCombatLocator |
locatorName, soldier2GameObjectId |
no known lua reference hash: e9c49da1 possibly also DisableCombatRotaion |
ChangeRouteSets |
NA |
|
ClearMemberRole |
soldier2GameObjectId |
|
GetCpPosition |
NA |
no known lua reference |
GetLocatorPosition |
name |
no known lua reference |
GetLocatorRadius |
name |
no known lua reference |
GetPhase |
NA |
|
IgnoreFlear |
ignore |
possibly a misspelling of flare? |
RemoveForceDiscovery |
NA |
no known lua reference |
RemoveIgnoreCoop |
NA |
|
RemoveIgnoreLookHeli |
NA |
|
RemoveIgnoreReinforce |
NA |
no known lua reference |
RemoveIgnoreReinforceInCp |
NA |
no known lua reference |
RemoveShootLineCheck |
NA (?) |
no known lua reference hash: 5ff6ae8f |
RemoveUseAreaBalance |
NA |
no known lua reference |
RequestForceReinforce |
NA |
Forces the enemy to call for Reinforcement. Used in EXTRAORDINARY (s10156) |
RequestNotice |
type, targetId, sourceId |
used in FOBs to make enemy respond to IR sensor and antitheft device gimmicks |
RequestRadio |
label, memberId, isHqRadio |
|
RestoreFromSVars |
NA |
|
SetAddReinforceCount |
add |
no known lua reference |
SetChatEnable |
enabled |
|
SetChildCp |
NA |
|
SetCombatArea |
cpName, combatAreaList |
|
SetCommunicateAnnounce |
NA |
|
SetCommunicateAreaGimmick |
cpName, gimmicks, locatorName, dataSetName, areaName |
|
SetCpForceSiren |
enable |
|
SetCpGroups |
groupd |
|
SetCpMissionTarget |
enable |
|
SetCpPosition |
x, y, z, r |
|
SetCpSirenType |
type, pos |
|
SetCpType |
type |
|
SetFOBPlayerDiscovery |
NA |
|
SetFOBReinforceCount |
count |
|
SetForceDiscovery |
NA |
no known lua reference |
SetFriendlyCp |
NA |
|
SetFultonLevel |
fultonLevel, isWormHole |
Enables enemies to fulton the player when unconscious, used in FOB |
SetGrenadeTime |
time |
controls grenade fuse time for CP? |
SetHitRate |
hitRate |
presumably controls accuracy of soldiers in CP. No known lua reference. |
SetIgnoreCoop |
NA |
used in a Quiet Exit |
SetIgnoreLookHeli |
NA |
|
SetIgnoreReinforce |
NA |
Disables the ability for soliders to call for reinforcements |
SetIgnoreReinforceInCp |
NA |
no known lua reference |
SetKeepAlert |
enable |
|
SetKeepCaution |
enable |
|
SetKeepCharge |
enable |
used in Pitch Dark |
SetLocatorMemberCount |
name, count, front |
used to assign guards to FOB platforms. Front is also a count value. |
SetLocatorPosition |
name, x, y, z, r |
|
SetLookPlayerWithNotice |
enable |
used in a Quiet Exit |
SetLrrpCp |
NA |
|
SetMarchCp |
NA |
|
SetNominateList |
vehicle, driver, sol01, sol02, sol03, sol04 |
|
SetNormalCp |
NA |
|
SetOuterBaseCp |
NA |
|
SetOutOfRainRoute |
routes |
|
SetPhase |
phase |
|
SetPowerSourceGimmick |
cpName, gimmicks, locatorName, dataSetName, areaName |
|
SetReinforceCount |
count |
Controls how many waves of reinforcements are allowed, resets when reentering Alert Phase |
SetReinforceEnable |
NA |
|
SetReinforcePlan |
reinforcePlan |
|
SetReinforcePrepared |
NA |
|
SetReinforceTime |
time |
Controls the cooldown between reinforcements, used in FOBs |
SetRouteEnabled |
routes, enabled |
|
SetRouteExcludeChat |
routes, enabled |
|
SetRouteSelector |
func |
used in combination with SetSwitchRouteFunc in TppEnemy.lua |
SetShootLineCheck |
NA (?) |
no known lua reference hash: a6991152 |
SetSkullCp |
NA |
|
SetTargetQuietTime |
time |
used in a Quiet Exit |
SetUseAreaBalance |
NA |
used in Hellbound |
SetWalkerGearParkRoute |
routes |
|
ShiftChange |
schedule, holdTime |
|
StoreToSVars |
NA |
TppCorpse
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
94b88e62 | enabled | |
ChangeFovaCorpse | name, faceId, balaclavaFaceId, bodyId, seed | |
DisableDeactivateInUnrealize | enabled | |
FreeExtendFova | NA | |
InitializeAndAllocateExtendFova | face, body | |
KeepInitMotion | enabled | |
RequestDisableWithFadeout | NA | |
RequestDisableWithFadeout | all, name, index (?) | |
RequestVanish | NA | |
RequestVanish | all, name, index (?) | |
SetBloodFaceMode | enabled | |
SetBloodFaceMode | enabled, name | |
SetBloodStain | offsetPos, radius | |
SetBurnt | enabled | |
SetClothActive | active | no known lua reference |
SetClothStop | enabled, active (?) | |
SetForceDisabledCarried | enabled | |
SetForceRealize | forceRealize, name, index (?) | |
SetForceUnreal | enabled | |
SetInitMotion | path | I think this is used to set the pose of corpses. KeepInitMotion makes them hold the pose until disturbed? |
SetInRoomRealizeMode | enabled | |
UseExtendParts | enabled |
TppCritterBird, TppEagle, TppStork
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
ChangeFlyingZone | name, center, radius, height | |
ForceFlying | name | |
ForceLandingOnGround | birdIndex, name, groundIndex | no known lua reference? |
ForceLandingOnPerch | birdIndex, name, perchIndex | no known lua reference? |
SetAutoLanding | name, birdIndex | |
SetEnabled | name, enabled | |
SetIgnoreDisableNpc | enabled | |
SetIgnoreNotice | name | |
SetKind | name, fv2Index | |
SetLandingPoint | name, groundPos, perchPos | |
SetParameter | name, maxSpeed, minSpeed, flyTime, idleTime | |
UnsetAutoLanding | name, birdIndex | no known lua reference |
UnsetIgnoreNotice | name | no known lua reference |
Warp | name, birdIndex, position, degreeRotationY | |
WarpOnGround | birdIndex, name, groundIndex, degreeRotationY | |
WarpOnPerch | birdIndex, name, perchIndex, degreeRotationY |
TppDecoySystem
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
DisableForceUnrealizeAll | NA | no known lua reference |
EnableForceUnrealizeAll | NA | no known lua reference |
StorePlayerDecoyInfos | NA |
TppGoat, TppNubian
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
SetAnimalId | name, animalId | |
SetEnabled | name, enabled | |
SetEscapeAttribute | enabled | |
SetFovaInfo | name, isSetAll, seed, color | |
SetHerdEnabledCommand | name, type, position, route, isForce | |
SetIgnoreDisableNpc | enabled | |
SetKind | name, fv2Index | |
SetIgnoreNotice | isPlayer, isSoldier, isHostage | |
SetNoticeDistance | name, distance, isForce | |
SetNoticeEnabled | name, enabled | |
SetStatus | status, set | only valid status is “Sleep” |
TppHeli2, TppEnemyHeli, TppOtherHeli (WestHeli), TppOtherHeli2 (some likely exclusive to one)
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
1a9f9df3 | direction | |
1bc3608c | enabled | possibly KeepNoticeSightRemove RidehelicopterJam |
66ab2df4 | NA (?) | |
902ed5fe | alpha | |
c8b2d4a6 | NA (?) | possibly SetLifeStatusChangedRideFromLanding |
e8b7b9ee | enabled | possibly EnableInSightCheckCBox, SetCombatLookPlayerWithMaxInstance |
CallSound | eventName | |
CallToLandingZoneAtName | name | |
CallToLandingZoneAtPosition | position | no known lua reference |
ChangeToIdleState | NA | |
CreateWormhole | isEnter | |
DisableDescentToLandingZone | NA | |
DisableLandingZone | name | |
DisablePullOut | NA | |
DoesLandingZoneExists | name | |
EnableDescentToLandingZone | NA | |
EnableLandingZone | name | |
EnablePullOut | NA | |
GetAiState | NA | will return hashed values of the following: WaitPoint, Descent, Landing, PullOut, MoveToLandingZone, MoveToWaitPoint The following are unknown states: 7ed0472b |
GetCurrentLandingZoneName | NA | |
GetDoingRouteEventIndex | NA | |
GetPassengerIds | NA | |
GetPassengerStaffIdsStaffOnly | NA | |
GetPosition | NA | |
GetUsingRoute | NA | |
InitializePassengers | NA | |
IsBroken | NA | |
PrepareWormhole | NA | no known lua reference hash: b625d5f2 |
PullOut | forced | |
Realize | NA | |
Recover | NA | often used in combination with IsBroken. Causes heli to flee |
RequestReinforce | fromCp, toCp | |
RequestRoute | enabled, route, point, warp | |
RequestSnedDoorOpen | NA | |
RestoreFromSVars | NA | |
SendPlayerAtRoute | route | |
SendPlayerAtRouteReady | route | |
SendPlayerAtRouteStart | isAssault | |
SetActionCommandFireToPlayer | time | used in Prologue when killed by heli |
SetAlertRoute | enabled, route, point, warp | |
SetAntiSahelanEnabled | enabled | |
SetAntiSahelanEventEnabled | enabled | |
SetAutoWithdrawalEnabled | enabled | |
SetCautionRoute | enabled, route, point, warp | |
SetColoring | coloringType, fova | |
SetCombatEnabled | enabled | |
SetCombatGrade | defenseValueMain, defenseValueCanopy, offenseGradeGun, offenseGradeMainWeapon, defenseGrade | no known lua reference for helis. |
SetCommandPost | enabled, cp | |
SetDeltaTimeMin | deltaTime | no known lua reference |
SetDemoToAfterDropEnabled | enabled, route, isTakeOff | |
SetDemoToIdleEnabled | enabled | |
SetDemoToLandingZoneEnabled | enabled, name | |
SetDemoToPullOutEnabled | enabled | |
SetDemoToSendEnabled | enabled, route | |
SetEnabled | enabled | |
SetEyeMode | mode | I think it turns on and off heli sight. Mode will accept values “Close” or “Open” |
SetFallingRoute | route | no known lua reference hash: c037b56d |
SetForceRoute | enabled, route, point, warp | |
SetGettingOutEnabled | enabled | |
SetIgnoreDisableNpc | enabled | |
SetInvincible | enabled | |
SetLandingZnoeDoorFlag | name, leftDoor, rightDoor | |
SetLandingZoneWaitHeightTop | height | |
SetLife | life | |
SetLightEnabled | enabled | no known lua reference |
SetMaxLife | life | |
SetMeshType | typeName | typeName accepts values “uth_v00”, “uth_v01”, or “uth_v02” |
SetMessagePlayerIsWithinRange | name, enabled, range | |
SetParameter | NA | likely dummied |
SetRequestedLandingZoneToCurrent | NA | |
SetRestrictNotice | enabled | |
SetRotorSoundEnabled | enabled | |
SetSearchLightForcedType | type | type accepts values “On”, “Off”, or “” |
SetSendDoorOpenManually | enabled | |
SetSneakRoute | route, point, warp | |
SetTakeOffWaitTime | time | |
SetTaxiRoute | currentClusterRoute, relayRoute, nextClusterRoute | |
StartAntiSahelan | startPosition, pullOutPosition | |
StoreToSVars | NA | |
Unrealize | NA |
TppHorse2 and TppCommonHorse2
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
9bba9494 | index, interval, scale, velocity | possibly SetNoticedAntiSahelanEventDescend |
GetCarriedHostage | NA | no known lua reference |
GetRidePlayer | NA | |
HorseForceStop | NA | |
IsCarriedHostage | NA | no known lua reference |
IsRidePlayer | NA | |
SetCallHorse | startPosition, goalPosition | |
SetCombatGrade | defenseValue, offenseGrade, defenseGrade | |
SetMaxLife | life |
TppHorse2forVr (volgin_horse) and TppPlayerHorse2forVr (ocelot_horse) (some likely exclusive to one)
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
GetRearRider | NA | no known lua reference hash: 4dccfdcf |
GetRidePlayer | NA | |
IsRearRider | NA | no known lua reference hash: 9dfe65ba |
IsRidePlayer | NA | |
RequestHandsGunToPlayer | NA | |
SetInvincibleMode | enable | |
SetMaxLife | life | |
SetRoute | warp, route |
TppHostage2, TppHostageUnique, TppHostageUnique2, TppHostageKaz, TppOcelot2, TppHuey2, TppCodeTalker2, TppSkullFace2, TppMantis2 (some likely exclusive to one)
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
2c2eb775 | type | |
CallMonologue | label, reset, carry, pause | used to make hostages talk while being carried |
CallVoice | dialogueName, parameter | |
ChangeFova | faceId, bodyId, seed, demoBodyId | |
ChangeLifeState | state | |
FreeExtendFova | NA | |
GetActionStatus | NA | |
GetCurrentEquipId | NA | |
GetCurrentLife | NA | |
GetFaceId | NA | |
GetKeepFlagValue | NA | |
GetLifeStatus | NA | |
GetMarkerEnabled | NA | |
GetMaxInstanceCount | NA | |
GetMaxLife | NA | |
GetNoticeState | NA | |
GetPosition | NA | |
GetRideVehicleState | NA | |
GetRotationY | NA | |
GetStaffId | divided | |
GetStatus | NA | |
GetVehicleGameObjectId | NA | |
InitializeAndAllocateExtendFova | face, body | |
IsChild | NA | |
IsDD | NA | |
IsFemale | NA | |
IsInRange | range, target | |
IsReal | NA | |
ReadyToStoreToSVars | NA | |
RecoveryAll | NA | |
RecoveryLife | NA | |
RecoveryStamina | NA | |
RequestDisableWithFadeout | NA | |
RequestForceFulton | NA | |
RequestVanish | NA | |
RestoreFromSVars | NA | |
RideVehicle | vehicleId, type, fastRide, off, seatIndex | |
SetBloodStain | slowFadeOut, offsetPos, radius | |
SetCombatGrade | defenseValue, offenseGrade, defenseGrade | |
SetCountAnyoneNearBy | enabled, enable | no known lua reference. Hash: 4da60fbb |
SetDemoToRideHorse | horseId | |
SetDisableDamage | life, faint, sleep | |
SetEnabled | enabled | |
SetEnemyDamageRate | rate | |
SetEquipId | primary | |
SetEverDown | enabled | |
SetFaceBloodMode | enabled | |
SetFaceId | faceId | |
SetFollowed | enable | |
SetForceScared | scared, time, ever | |
SetHostage2Flag | flag | |
SetHostage2Flag | flag, updateModel | updateModel is used in combination with the “unlocked” flag in Where do the Bees Sleep? |
SetIgnoreDisableNpc | enable | |
SetKeepFlagValue | keepFlagValue | |
SetLangType | langType | |
SetMarkerEnabledCommand | enabled | |
SetMaxLife | life, stamina | |
SetMovingNoticeTrap | enable | I think it makes enemies notice when a hostage has been moved from an area |
SetNoticeState | state | I think this sets a flag which marks whether soldiers should notice the hostage |
SetPlayerDistanceCheck | enabled, near, far | |
SetRandomActing | actions, intervalMax, intervalMin | |
SetRelativeVehicle | targetId | |
SetStaffId | divided, staffId, staffId2 | |
SetSneakRoute | route, point | |
SetTargetId | targetId, headshot, curtain | used to make Ishmael do stuff, like open doors, shoot XOF |
SetVoiceType | voiceType | |
SpecialAction | action, facial, stance, path, state, startPosition, startAngleY, override, autoFinish, enableMessage, enableGravity, enableCollision, enableSubCollision, enableGunFire, enableCurtain, enableIk, enableAim, enableFinishPlayerIn, enableFinishEnemiesOut, enableFinishCarried, enableFinishInterrupted, enableGroupDelay, enableGroupRate, enableKeepStartLocation, disableMove, commandId, interpFrame | used to make hostages play special animations |
StoreToSVars | NA | |
UnsetRelativeVehicle | NA | |
Warp | demoEnd, rotationY, degRotationY, control, interpTime, position |
TppLiquid2
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
GetLifeStatus | NA | |
ForceUnconscious | NA | |
GetMaxInstanceCount | NA | |
GetPhase | NA | |
GetPlayerDistance | NA | |
IsSittingInChair | NA | |
InitiateCombat | NA | |
RestoreFromSVars | NA | |
SetCommandPost | cp | |
SetForceRealize | forceRealize | |
SetForceUnrealize | forceUnrealize | |
SetMotherBaseMode | NA | |
SetRoute | route, point | |
StoreToSVars | NA | |
Warp | position, rotationY |
TppMarker2LocatorSystem
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
RestoreFromSVars |
NA |
|
StoreToSVars |
NA |
TppMbQuiet
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
SetLoop | isLoop | no known lua reference |
StartWakeUp | isLoop, isAll |
TppParasite2 (only mist and armoured Skulls)
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
GetParasiteType | NA | returns hashed values of “Fog” or “Metal” |
Realize | NA | |
SetAreaCombatEnabled | enabled | |
SetCombatGrade | defenseValueMain, defenseValueArmor, defenseValueWall, offenseGrade, defenseGrade | |
SetCorrodeActionEnabled | enabled | |
SetDeterrentEnabled | enabled | |
SetDeterrentVehicleEnabled | enabled | |
SetFogActionEnabled | enabled | |
SetFogState | NA | likely dummied |
SetGuardTargetId | targetId | |
SetFultonEnabled | enabled | |
SetParameters | params | params is a table which can take the following keys and their values: sightDistance, sightDistanceCombat, sightVertical, sightHorizontal, noiseRate, avoidSideMin, avoidSideMax, throwRecastTime, areaCombatBattleRange, areaCombatBattleToSearchTime, areaCombatLostSearchRange, areaCombatLostToGuardTime, areaCombatGuardSearchRange, areaCombatGuardDistance |
SetStateAfterDemo | realize, harden | |
StartAppearance | position, radius | |
StartCombat | harden | |
StartGuard | NA | |
StartSearch | NA | |
StartTargetKill | targetId | |
StartWithdrawal | NA | |
Unrealize | NA |
TppPlayer2
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
44d414a9 | level, equip, all | |
ea35c35b | level, equip, all | |
CreateWormhole | isEnter, isVfxDisabled | Makes the player disappear with the wormhole affect, enemies can still spot the player. |
GetWormholePosition | NA | |
RequestCarryOff | NA | |
SetBaseMotionSpeedRate | speedRate | Alters the animation speed of most player motions |
SetHesitatingFire | enabled | |
SetSpecialAttackMode | *WIP* | Puts player into special attack state (executing Quiet/Skull Face, attacking Volgin at hospital) and controls mission prepare animation. |
SetStandMoveSpeedLimit | speedRateLimit | Caps the speed of the running animation (not dash) |
SetWormhole | disp | Makes the FOB abort wormhole circle appear |
SetWormholeIcon | enable | The icon that enables you to interact with the Abort wormhole used in FOB |
SetWormholeIconType | enable | Wormhole is useable if true, used in FOB to disable the ability to abort via wormhole if in Alert Phase. |
SetWormholePosition | position | Abort WormHole circle position. if not given, it will be the player’s position? not sure |
Warp | pos, rotY | |
WarpToStation | stationId | Warps player between delivery points via cardboard box |
TppRat
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
SetEnabled | name, ratIndex, enabled | |
SetFovaInfo | name, isSetAll, seed, color | |
SetIgnoreDisableNpc | enabled | |
SetKind | name, fv2Index | |
SetRoute | name, ratIndex, route, nodeIndex | |
Warp | name, ratIndex, position, degreeRotationY, route, nodeIndex |
TppSahelan2
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
GetDistanceToLandingZone | NA | |
GetDistanceToPlayer | NA | |
GetPhase | NA | |
GetPosition | NA | |
IsPlayerInSight | NA | |
ResetEnableAttackToHoveringHeli | NA | |
ResetHeliPosition | NA | |
ResetParasiteEffect | NA | |
SetBaseRoute | route | |
SetCautionRoute | route | |
SetCautionRouteAll | index, all | |
SetCombatGrade | defenseValue, defenseValueForWeakPoint, offenseGrade, defenseGrade | |
SetDeadClear | NA | no known lua reference seems to kill Sahelanthropus |
SetEnableAttackToHoveringHeli | NA | |
SetHeliPosition | position | |
SetLostPlayerTime | time | no known lua reference |
SetMarkerEnabledCommand | enabled | |
SetMaxLife | life | |
SetMaxPartsLife | life, parts | |
SetParasiteEffect | NA | |
SetPrevVsHeliSequencePosition | targetPosition, targetRotationY | |
SetRelativeRouteNode | index0, index1, route0, route1 | |
SetSearchMissileRouteAll | index, route | |
SetSneakRoute | route | |
SetStageType | index | index value is 0 in Hellbound, 1 in Sahelanthropus, and 2 in Sahelanthropus [EXTREME]. 3 is a valid value, but only makes Sahelanthropus stand idle |
SetStopLife | life | damage needed to stop Sahelanthropus in heli sequence in Hellbound |
SetStopSahelan | NA | seems to kill Sahelanthropus |
SetSupportAttack | NA | |
SetVsHeliSequenceLast | targetPosition | |
SetVsHeliSequenceMissileStop | NA | |
SetVsHeliSequenceStart | landingPosition, targetPosition |
TppSecurityCamera2
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
IsGunCamera | NA | |
RemoveCautionTarget | NA | no known lua reference |
RemoveSneakTarget | NA | no known lua reference |
RestoreFromSVars | NA | |
SetCautionTarget | target | no known lua reference |
SetCombatGrade | defenseValue, offenseGrade, defenseGrade | |
SetCommandPost | cp | |
SetDevelopLevel | developLevel | |
SetEnabled | enabled | |
SetFreePositionCamera | NA | I think it is used to turn on placed cameras on FOBs |
SetFriendly | enabled | |
SetGunCamera | NA | |
SetLocator | pos, rotY | no known lua reference |
SetMarkerEnabledCommand | enabled | |
SetNormalCamera | NA | |
SetSneakTarget | target | no known lua reference |
StoreToSVars | NA | |
SwitchOffCamera | NA | no known lua reference |
SwitchOnCamera | NA | no known lua reference |
TppSoldier2
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
1e02b734 |
enabled |
possibly SetCombatAiActiveCollision ForceOutOfAcitveByLastPosition |
94b88e62 |
enabled |
|
d6409d25 |
NA (?) |
possibly SetKillFriendHostage2Flag |
ee110127 |
time |
possibly SetOptCamTime, GetReinforceCpRadioTime |
AddDamage |
attackId, ownerGameObjectId, isOneHitKill, isHeadShot |
used in Prologue to kill XOF after Ishmael "shoots" them |
AddRouteAssignMember |
NA |
|
AddSpecialNoise |
noiseType, pos |
used in Root Cause - It makes the enemies react to the given position as if there was an explotion. |
CallConversation |
label, friend, friend2, hostage, range |
no known instances of using friend2 argument? |
CallMonologue |
label |
play a voice clip, usually scripted to play while being carried |
CallRadio |
label, stance, isHqRadio, voiceType, isForce |
Can be used to trigger a caution phase with the right radio label |
CallSoundEffect |
isCheckShield, isFollow, sound |
used to make MB soldiers hum in Shining Lights Even in Death |
CallVoice |
dialogueName, parameter |
|
ChangeEquipSlot |
slot |
|
ChangeFova |
faceId, balaclavaFaceId, bodyId, seed |
|
ChangeFova |
seed, race, faceId, balaclavaFaceId, bodyId, isScarf |
a different instance of the same id name |
ChangeLifeState |
state, stance |
|
ChangeSpecialFova |
seed, faceId, faceIndex, balaclavaFaceId, bodyId, bodyIndex |
|
ClearEscapePosition |
NA |
related to wandering mother base soldier fleeing behaviour |
CreateFaceIdList |
NA |
|
DisablePickupMainWeapon |
enabled |
|
DisableSwitchCorpse |
enabled |
no known lua reference |
DyingFireOnce |
enabled |
used in Shining Lights Even in Death to make dying soldier fire pistol |
FreeExtendFova |
NA |
|
GetActionStatus |
NA |
|
GetCurrentEquipId |
NA |
|
GetGameObjectIdUsingRoute |
route |
Checks the soldier that is using the given route, and returns the soldier's id |
GetLangType |
NA |
no known lua reference |
GetLifeStatus |
NA |
|
GetPosition |
NA |
|
GetSoldier2Gender |
NA |
|
GetSoldier2Race |
NA |
no known lua reference |
GetSoldier2Type |
NA |
|
GetStaffId |
NA |
|
GetStateFlag |
NA |
|
GetStatus |
NA |
|
GetVehicleGameObjectId |
NA |
|
InitializeAndAllocateExtendFova |
face, body |
|
IsActiveSoldierInRange |
range, position |
|
IsChild |
NA |
|
IsDD |
NA |
|
IsDoneHoldUp |
NA |
|
IsDoneTacticalTakedown |
NA |
|
IsDyingFobStaff |
NA |
no known lua reference hash: 41438b61 possibly GetVehicleIdleEndCheckTime |
IsDyingLife |
NA |
no known lua reference |
IsLimbo |
NA (?) |
no known lua reference hash: e8245e93 possibly SetRegistSwarmEffectFromBeginningZombieUse |
IsOnRoute |
route |
|
IsZombieOrMsf |
NA |
|
RecoveryAll |
NA |
wakes up unconscious or sleeping soldier |
RecoveryLife |
NA |
|
RecoveryStamina |
isDelay, delayTime, enabled |
|
Refresh |
NA |
|
RegenerateStaffIdForReinforce |
NA |
|
RegisterMessage |
isRegistered, message |
only allowed value for message is "ChangePhase" |
RegistGrenadeId |
grenadeId, stunId |
|
RegistSwarmEffect |
NA |
for puppet soldiers |
RemoveCommandAi |
NA |
|
RequestDisableWithFadeout |
NA |
|
RequestForceFulton |
NA |
|
RequestVanish |
NA |
|
ResetInterrogationFlag |
NA |
no known lua reference |
ResetSoldier2Flag |
NA |
|
RestoreFromSVars |
NA |
|
SetAlertRoute |
route, point, enabled |
|
SetBloodFaceMode |
enabled |
|
SetBringPlayerAsPrisoner |
enabled |
used in Skull Face to make escort soldiers keep pace with the player after meeting at helipad. Additionally, enables AI behaviour which warns the player but unclear how to activate. |
SetCannonTime |
time |
used in a Quiet Exit - I think it acts on soldier in tank to control fire interval |
SetCautionRoute |
route, point |
|
SetChargeMode |
enable |
|
SetCharger |
enable |
applied to soldiers in a Quiet Exit after they exit APCs |
SetChickenwingGunAim |
enabled |
used in Prologue to set special XOF aim stance |
SetCombatGrade |
defenseValue, offenseGrade, defenseGrade |
|
SetCommandAi |
commandType, commandIndex, x, y, z, vehicle, sol01, sol02, sol03, formationIndex |
selection of arguments depends on commandType value |
SetCommandAiStep |
step |
used in Prologue to move XOF during gun tutorial? |
SetCommandPost |
cp |
|
SetConversationList |
list |
|
SetDisableDamage |
life, faint, sleep |
|
SetDisableOccasionalChat |
disable |
|
SetDisableWarpToNav |
enabled |
|
SetDiscoveryPlayer |
NA |
|
SetDoneHoldup |
NA |
|
SetDyingFireInfinity |
enabled |
used in Shining Lights Even in Death to make dying soldier fire his pistol |
SetEmblemType |
type |
|
SetEnabled |
enabled, noAssignRoute |
|
SetEnableDyingState |
enabled |
|
SetEnableHotThroat |
enabled |
used in Shining Lights Even in Death to set glowing throat |
SetEnableSendMessageAimedFromPlayer |
enabled |
contrary to lua, will not work for TppLiquid2 |
SetEquipId |
primary, secondary, tertiary |
|
SetEscapePosition |
posList |
set wondering mother base soldier flee position |
SetEverDown |
enabled |
sets enemy permanently unconscious |
SetExecuteHostage |
targetId |
|
SetFrameDamage |
NA |
kills soldiers by setting them on fire |
SetFriendly |
enabled |
|
SetForceDisableCarried |
enabled |
|
SetForceDownStance |
stance |
no known lua reference |
SetForceDyingFire |
toPlayer, toEnemy, toNone |
used in Shining Lights Even in Death to make dying soldier fire his pistol |
SetForceFormationLine |
enable |
seems to override combat AI to force soldiers to move to and hold a pre-defined position |
SetForceHoldup |
NA |
|
SetForceRealize |
forceRealize |
|
SetGunLightSwitch |
isReset, isOn, useCastShadow |
used in Prologue to turn XOF gun lights on |
SetIgnoreDamageAction |
flag |
|
SetIgnoreDisableNpc |
enable |
|
SetIgnoreSupportBlastInUnreal |
enabled |
|
SetInfantry |
setNum, vehicle, sol01, sol02, sol03 |
no known lua reference |
SetInheritanceForceRealizeToCorpse |
enabled |
|
SetInRoomRealizeMode |
enabled |
|
SetInVehicle |
vehicle, sol01, sol02, sol03, sol04 |
used in a Quiet Exit to release soldiers from the back of APCs |
SetLrrp |
travelPlan, travelPlanStep |
|
SetMarkerEnabledCommand |
enabled, alwaysDisable |
|
SetMarkerTextType |
type, on |
Changes text that appears above stats when marked with binoculars |
SetMaxLife |
life, stamina |
|
SetMbInterrogate |
enableMask |
|
SetMsfCombatLevel |
level |
for wandering mother base soldiers |
SetNoBloodMode |
enabled |
|
SetOutOfArea |
isOut, soldiers |
|
SetPersonalAbility |
ability |
value for ability is a table which may contain the following arguments: shot, grenade, hp, cure, speed, notice, reflex, reload, holdup, fulton. Each may be assigned a value of "low", "med", "high", or "sp" |
SetPuppet |
enabled |
makes soldier a cutscene puppet (not zombie) - will not respond to most player actions |
SetRelativeVehicle |
targetId, rideFromBeginning, isMust, isVigilance |
|
SetRestrictNotice |
enabled |
turns off "notice" cone of vision - can still discover player |
SetRideHeliFromBeginning |
NA |
no known lua reference hash: 272af721 |
SetRouteFront |
NA |
used in The War Economy - possibly sets one soldier in front on a shared route |
SetSaluteDisable |
enabled |
|
SetSaluteMoraleDisable |
enabled |
|
SetSaluteToCqc |
enabled |
|
SetSaluteVoiceList |
list |
|
SetSimpleAction |
actionName |
no known lua reference. valid actionName values are the same as action values found in SPCH files. |
SetSkull |
enabled |
used in Prologue |
SetSlowDeadSoundEffect |
enabled |
|
SetSneakRoute |
route, point, isRelaxed |
|
SetSoldier2Flag |
flag, on |
many possible flags, some unknown ex flags: |
SetSoldier2SubType |
type |
|
SetSoldier2Type |
type |
|
SetSoundSwitchCyprusMask |
enabled |
|
SetStaffId |
staffId |
|
SetSwitchRouteFunc |
func |
|
SetTacticalTakedown |
NA |
|
SetToHeliRecoveredComplete |
NA |
|
SetTravelPlan |
travelPlan |
|
SetUnarmed |
enabled |
|
SetUseHotThroat |
NA |
likely dummied hash: b60f74d6 |
SetVehicleSpecialAct |
NA |
used in Skull Face - plays animation where driver turns on radio |
SetVip |
NA |
|
SetVipSpecial |
NA |
|
SetVisibleSuppressor |
isVisible, enabled |
used in Prologue to set suppressors on XOF |
SetVoiceType |
voiceType |
|
SetWearEquip |
flag |
|
SetZombie |
enabled, isMsf, isHalf, isZombieSkin, isHagure |
|
SetZombieUseRoute |
enabled |
|
SpecialAction |
action, isDisable, stance, autoFinish, enableMessage, enableGravity, enableCollision, enableDeadEnd, path, commandId, interpFrame, startFrame, startPos, startRot |
arguments vary depending on action value. Many possible action values (e.g. PlayMotion, PlayStance, ocelot_go_heli). |
StartTravel |
travelPlan, step, enabled, keepInAlert |
|
StoreToSVars |
markerOnly, mvars, isClientSessionStart |
|
SwitchRoute |
route |
|
UnequipArmorHelmet |
NA |
|
UnregistSwarmEffect |
NA |
for puppet soldiers |
UnsetRelativeVehicle |
NA |
|
UseExtendParts |
enabled |
Used in 10240-SHINING LIGHTS for female soldiers and 10080-PITCH DARK for child soldiers. |
TppSupplyCboxSystem
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
DisableRequest |
NA |
no known lua reference |
EnableRequest |
NA |
no known lua reference |
RestoreRequest |
NA |
|
StoreRequest |
NA |
TppSupportAttackSystem
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
DisableRequest |
NA |
no known lua reference |
EnableRequest |
NA |
no known lua reference |
RestoreRequest |
NA |
|
StoreRequest |
NA |
TppUav
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
GetMaxInstanceCount | NA | |
RestoreFromSVars | NA | |
SetCombatGrade | offenseGrade, defenseGrade | |
SetCombatRoute | route | |
SetCommandPost | cp | |
SetDevelopLevel | developLevel, empLevel | |
SetEnabled | enabled | |
SetFriendly | NA | |
SetMarkerEnabledCommand | enabled | |
SetPatrolRoute | route | |
SetWeaponType | weaponType | Most likely sets whether it fires bullets, sleep grenades, etc. No known lua reference. |
StoreToSvars | NA | |
WarpToNearestPatrolRouteNode | NA |
TppVehicle2
id argument name (hash if unknown) |
Other argument names |
Description |
---|---|---|
26a17ef3 |
NA |
possibly GetVehicleEmptyGetOff |
ef20fb10 |
NA (?) |
possibly Procedure |
Annihilate |
NA (?) |
no known lua reference hash: 6b363ef0 possibly also SetObjectIdUsingRestorePosition |
CancelForceRailDriveSpeed |
NA |
|
CancelToObserve |
observation |
no known lua reference |
Constrain |
NA |
|
Despawn |
NA |
|
ForceRailDriveSpeed |
speed |
|
ForceStop |
enabled |
|
GetPosition |
NA |
|
GetResourceId |
NA |
|
GetRiderID |
NA |
can use to check who is in a vehicle and how many people are in a vehicle |
GetState |
NA |
|
GetVehicleType |
NA |
|
IsAlive |
NA |
|
RegisterConvoy |
convoyId |
|
RegisterSpecialEngineSfx |
targetId, eventName |
used in Skull Face |
Rename |
newName, index |
no known lua reference hash: bb73b5ce |
RequestToObserve |
observation |
|
Respawn |
NA |
|
RespawnVehicles |
NA |
no known lua reference hash: 2b7f5898 possibly also SetRideBackObject |
RestoreFromSVars |
NA |
|
Seize |
options |
removes vehicle from play and adds it to MB inventory? Argument "options" takes a table which can include the following keys: DirectAccount, CheckFultonType, Instant, Fulton, FadeOut, CheckFarFromPlayer |
SetBodyDamageRate |
rate |
no known lua reference |
SetBodyLife |
life |
|
SetIgnoreDisableNpc |
enable |
|
SetPosition |
position, rotY |
|
SetRealizePriority |
priority |
no known lua reference |
SetVehicleType |
type, subType |
no known lua reference |
SetWheelDamageRate |
rate |
no known lua reference |
Spawn |
locator, type, name, position, rotY, subType, class, paintType, emblemType, defenseValues, offenseGrades, defenseGrade, bodyLife, wheelLife, turretLife, subWeaponLife, priority, index |
need to test that all these argument names are valid |
StoreToSVars |
NA |
|
UnregisterConvoy |
convoyId |
|
UnregisterSpecialEngineSfx |
targetId |
no known lua reference |
TppVolgin2
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
8edf9ec8 | route, point | |
DisableCombat | NA | |
EnableCombat | NA | |
RequestAttack | attackType | |
SetChasePlayerMode | chasePlayer | |
SetCyprusMode | NA | |
SetFireballMode | enable | |
SetForceRealize | forceRealize | |
SetForceUnrealize | forceUnrealize | |
SetRoute | route, point | |
SetTunnelDestroyed | NA | |
ToggleCombat | NA (?) | no known lua reference hash: 29e62b8e |
Warp | position, rotationY |
TppVolgin2forVr (volgin_vr)
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
EnableFinalScream | NA | |
RequestAttack | attackType | |
SetEnableAiAttacking | enable | |
SetFirewallInfo | firewallInfo, delay, offset | |
SetForceRealize | forceRealize | |
SetForceUnrealize | forceUnrealize | |
SetInvincibleMode | enable |
TppWalkerGear2 and TppCommonWalkerGear2 (some likely exclusive to one)
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
CountEnemyGearNearPlayer | NA | |
ForceStop | enabled | |
GetMaxInstanceCount | NA | |
GetPosition | NA | |
GetResourceId | NA | |
IsBroken | NA | |
IsEnemyRiding | NA | |
IsFultonCaptured | NA | |
IsPlayerRiding | NA | |
NoRideOn | enabled | |
RestoreFromSVars | NA | |
SetColoringType | type | |
SetCombatGrade | defenseValue, offenseGrade, defenseGrade | |
SetExtraPartsForSpecialEnemy | enabled | Used to set appearance to Huey’s prototype |
SetIgnoreDisableNpc | enabled | |
SetMainWeapon | weapon | |
SetMarkerEnabledCommand | enabled | |
SetMaxLife | life | |
SetPosition | pos, rotY | |
StoreToSVars | NA |
TppWolf, TppJackal
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
ChangeDeadState | position, degRotationY | |
SetAnimalId | name, animalId | |
SetEnabled | name, enabled | |
SetHerdEnabledCommand | name, type, position, route, flag | |
SetIgnoreDisableNpc | enabled | |
SetIgnoreNotice | isPlayer, isSoldier, isHostage | |
SetKind | name, fv2Index | |
SetNoticeDistance | name, distance |
TppZebra
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
SetAnimalId | name, animalId | |
SetEnabled | name, enabled | |
SetHerdEnabledCommand | name, type, position, route, isForce | |
SetIgnoreDisableNpc | enabled | |
SetIgnoreNotice | isPlayer, isSoldier, isHostage | |
SetKind | name, fv2Index | |
SetNoticeEnabled | name, enabled |
Invalid
id argument name (hash if unknown) | Other argument names | Description |
---|---|---|
DEBUG_ChangeChimeraWeapon | chimeraInfo | for debug only? |
DEBUG_ChangeEquip | equipId | for debug only? |
ExecuteScriptAll | command | for MGO only |
https://github.com/unknown321/mgsvdump/blob/master/tpp/sequences/commands_for_sequences.lua