Difference between revisions of "Trigger changemodel"

From Sven Co-op
Jump to navigation Jump to search
m (Added bodygroup key (missing in FGD as of yet))
m (Grammar)
 
Line 7: Line 7:
 
== Keyvalues ==
 
== Keyvalues ==
  
{{Entity_keyvalue|Target|target|Entity which's model is to be changed.}}
+
{{Entity_keyvalue|Target|target|Entity whose model is to be changed.}}
{{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. The model is precached automatically. Path starts in <code>svencoop</code> directory.}}
{{Entity_keyvalue|Skin|skin|Skin to use on target model.}}
+
{{Entity_keyvalue|Skin|skin|Skin to use on the target model.}}
{{Entity_keyvalue|Body group|bodygroup|Body group to use on target model.}}
+
{{Entity_keyvalue|Body group|bodygroup|Body group to use on the target model.}}
  
 
{{entity_title}}
 
{{entity_title}}

Latest revision as of 20:37, 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 whose model is to be changed.

New Model Name : model

Path to the new model. The model is precached automatically. Path starts in svencoop directory.

Skin : skin

Skin to use on the target model.

Body group : bodygroup

Body group to use on the target model.