gzdoom/wadsrc/static/zscript
Shiny Metagross 5abadd3aab A_ChangeModeldef
-Added A_ChangeModelDef
A_ChangeModel(modeldef, modelpath, model, modelindex, skinpath, skin, skinid, flags)

This can change the modeldef, model and skins of an actor.

Currently, modelindex and skinindex accept indices from 0-15.

An actor MUST have a modeldef in order to use this function, either defined from modeldef, or given one through the modeldef parameter. You can pass "" to use the same modeldef. Likewise, passing "" for model or skin will just revert to the default model.

Available flags:
CMDL_WEAPONTOPLAYER - If used on a weapon, this instead change's the model on the player instead.

One issue I am aware of right now is that clearing a model by "" sort of works but is buggy. For now you can just manually set the model back using the names explicitly. However, I am stumped and I think getting more eyes on it would help.
2022-07-22 17:11:59 +02:00
..
actors A_ChangeModeldef 2022-07-22 17:11:59 +02:00
engine - add a method for filling a shape2d instead of using a texture (#1661) 2022-07-16 14:57:22 +02:00
scriptutil - reorganized the ZScript content in gzdoom.pk3 and changed the files' extensions to something unique for easier syntax highlighting. 2019-02-23 12:08:27 +01:00
ui - removed leftover debug message 2022-05-24 00:05:44 +02:00
compatibility.zs Add help messages for most of the deprecated stuff in ZScript. 2020-03-14 12:56:03 +02:00
constants.zs A_ChangeModeldef 2022-07-22 17:11:59 +02:00
destructible.zs Add help messages for most of the deprecated stuff in ZScript. 2020-03-14 12:56:03 +02:00
doombase.zs Replaced GetTerrainDef with the global Terrains array. 2022-02-22 19:35:50 +01:00
events.zs Allow WorldUnloaded events to know the next map name (if any). 2021-10-01 20:18:36 +02:00
level_compatibility.zs - fix bad MP start spot in 1024.wad, MAP05 2022-05-31 10:05:25 +02:00
level_postprocessor.zs - rename 'FlipLine' to 'FlipLineVertexes' to clarify what it does 2019-11-24 06:40:01 -05:00
mapdata.zs Replaced GetTerrainDef with the global Terrains array. 2022-02-22 19:35:50 +01:00
sounddata.zs - reorganized the ZScript content in gzdoom.pk3 and changed the files' extensions to something unique for easier syntax highlighting. 2019-02-23 12:08:27 +01:00
zscript_license.txt - moved all shareable script sources to their own folder in gzdoom.pk3. 2020-10-31 12:24:13 +01:00