Difference between revisions of "Trigger changemodel"

From Sven Co-op
Jump to navigation Jump to search
(Import of converted entguide pages from Sven Manor.)
 
m (Added bodygroup key (missing in FGD as of yet))
Line 10: Line 10:
 
{{Entity_keyvalue|New Model Name|model|Path to the new model. Is precached automatically. Path starts in "svencoop"-directory.}}
 
{{Entity_keyvalue|New Model Name|model|Path to the new model. Is precached automatically. Path starts in "svencoop"-directory.}}
 
{{Entity_keyvalue|Skin|skin|Skin to use on target model.}}
 
{{Entity_keyvalue|Skin|skin|Skin to use on target model.}}
 +
{{Entity_keyvalue|Body group|bodygroup|Body group to use on target model.}}
  
 
{{entity_title}}
 
{{entity_title}}

Revision as of 21:36, 4 April 2023

trigger_changemodel
Type

point

Status

supported

 


Trigger_changemodel allows you to change the model and/or skin of anything at runtime. Just setting an entities model-keyvalue won't work. Its intended use is to change skins/models of monsters, players or props. Models are precached automatically.

Keyvalues

Target : target

Entity which's model is to be changed.

New Model Name : model

Path to the new model. Is precached automatically. Path starts in "svencoop"-directory.

Skin : skin

Skin to use on target model.

Body group : bodygroup

Body group to use on target model.