Games > The Simpsons Hit & Run > Console File Commands > MFK Commands > General > LoadP3DFile

LoadP3DFile

This command loads a P3D file.

Context

This command should be called in a level's load script (level.mfk) or a mission's load script (mXsdl.mfk, mXl.mfk, srXl.mfk, bm1l.mfk or gr1l.mfk).

Syntax

LoadP3DFile( filepath, allocator, slot );

Game.LoadP3DFile( filepath, allocator, slot )

  • filepath: The path to the P3D file to load.
    • The following 6 paths are ignored since the game loads them at startup:
      • art\phonecamera.p3d
      • art\cards.p3d
      • art\wrench.p3d
      • art\missions\generic\missgen.p3d
      • art\cars\common.p3d
      • art\cars\huskA.p3d
  • allocator: Set the memory allocator to use for this P3D file.
    • GMA_DEFAULT: Unknown.
    • GMA_TEMP: Unknown.
    • GMA_PERSISTENT: Unknown.
    • GMA_LEVEL: Unknown.
    • GMA_LEVEL_MOVIE: Unknown.
    • GMA_LEVEL_FE: Unknown.
    • GMA_LEVEL_ZONE: Unknown.
    • GMA_LEVEL_OTHER: Unknown.
      • Typically used for a level's FX file, for example art\l01_fx.p3d.
    • GMA_LEVEL_HUD: Unknown.
    • GMA_LEVEL_MISSION: Unknown.
    • GMA_LEVEL_AUDIO: Unknown.
    • GMA_DEBUG: Unknown.
    • GMA_SPECIAL: Unknown.
  • slot: Unknown.
    • Global: Unknown.

Examples

// Load the level's locators.
LoadP3DFile("art\missions\level01\level.p3d");

// Load the Level's FX file into GMA_LEVEL_OTHER
LoadP3DFile("art\l01_fx.p3d","GMA_LEVEL_OTHER");

// Will be ignored.
LoadP3DFile("art\cars\huskA.p3d");

-- Load the level's locators.
Game.LoadP3DFile("art\\missions\\level01\\level.p3d")

-- Load the Level's FX file into GMA_LEVEL_OTHER
Game.LoadP3DFile("art\\l01_fx.p3d","GMA_LEVEL_OTHER")

-- Will be ignored.
Game.LoadP3DFile("art\\cars\\huskA.p3d")

Notes

No additional notes.

Donut Team © 2024 · v4.0