-
Notifications
You must be signed in to change notification settings - Fork 2
Additional LevelMod DLL script functions
DCxDemo edited this page Sep 20, 2020
·
1 revision
- 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 = TherNewStringalways returns true -
strstr Example:
strstr s1 = "Here is a string" s2 = "string"returns true if s1 contains s2 -
GetZAngle angle is stored in
GLOBAL.angleandGLOBAL.angleneed to exist before calling GetZAngle always returns true -
GetSpeed same as above but stored in
GLOBAL.speedalways returns true -
GetSkaterPos same as above but stored in
GLOBAL.posalways returns true -
GetSkaterLook same as above but stored in
GLOBAL.posalways returns true -
CreatePair Example:
CreatePair Name = "NameToStore" x = 1.0 y = 2.0acces it withGLOBAL.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 IsOptionOnwill 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.NameToStoreif no name is passed acces withGLOBAL.valuereturns 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