Skip to content

Additional LevelMod DLL script functions

DCxDemo edited this page Sep 20, 2020 · 1 revision

List of All Functions that you can call from Script

  • SomeNotes When you call a function that will add a value to your params that you can access with GLOBAL
  • You need to have the value there in the params else it will not work
  • ChangeString Example: ChangeString string = StringToChange param = TherNewString always returns true
  • strstr Example: strstr s1 = "Here is a string" s2 = "string" returns true if s1 contains s2
  • GetZAngle angle is stored in GLOBAL.angle and GLOBAL.angle need to exist before calling GetZAngle always returns true
  • GetSpeed same as above but stored in GLOBAL.speed always returns true
  • GetSkaterPos same as above but stored in GLOBAL.pos always returns true
  • GetSkaterLook same as above but stored in GLOBAL.pos always returns true
  • CreatePair Example: CreatePair Name = "NameToStore" x = 1.0 y = 2.0 acces it with GLOBAL.NameToStore
  • TestForAcid depricated
  • Wallplant depricated
  • PreWallplant depricated
  • EnterObserveMode2 Enter custom observe mode always returns true
  • LeaveObserveMode2 Leave custom observe mode always returns true
  • ObserveNext Observe next player always returns true
  • StoreSkaterPos Stores skaters position always returns true
  • GotoStoredPos Goto the stored position always returns true
  • Not Example: IF Not IsOptionOn will call CFunction IsOptionOn and return !
  • SubToGlobal used in thps4+ levels always returns true
  • AddToGlobal used in thps4+ levels always returns true
  • FreezeCamera Freezes the camera always returns true
  • UnfreezeCamera Unfreeze the camera always returns true
  • GrafStarted Called from scripts when Graffiti is started
  • so client can check if server has enabled unlimited tags
  • ChangeValues Example: ChangeValues Container = AStruct values = BStruct
  • Sets values from BStruct to AStruct returns true if find params, else false
  • GetSliderValue Example: GetSliderValue id = element_id ||name = NameToStore||
  • acces it with GLOBAL.NameToStore if no name is passed acces with GLOBAL.value returns true on sucess
  • InitLevelMod Inits levelmod stuff
  • MoveObject Move an EnvironmentObject
  • KillMovingObject Stop Moving an EnvironmentObject
  • ChangeParamToUnnamed
  • IsOptionOn check if an option is on, remember to add the option to the list first
  • AddOption adds an option to the list, all options gets stored inside levelmod.ini use value = [number] to set a default value
  • ToggleOption toggle an option
  • LM_GotParam usage same as GotParam, but checks inside arrays and structs
  • GetParam Moves a param from array/struct into the local stack

Clone this wiki locally