File tree 1 file changed +16
-0
lines changed
model/character/example/character
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
function init(self)
2
2
msg.post(".", "acquire_input_focus")
3
3
model.play_anim("#model", "T-Pose", go.PLAYBACK_LOOP_FORWARD)
4
+
5
+ -- enabled and disable meshes to get the correct look
6
+ -- weapons
7
+ model.set_mesh_enabled("#model", "1H_Sword", true)
8
+ model.set_mesh_enabled("#model", "1H_Sword_Offhand", false)
9
+ model.set_mesh_enabled("#model", "2H_Sword", false)
10
+
11
+ -- equipment
12
+ model.set_mesh_enabled("#model", "Knight_Helmet", true)
13
+ model.set_mesh_enabled("#model", "Knight_Cape", true)
14
+
15
+ -- different shields
16
+ model.set_mesh_enabled("#model", "Spike_Shield", true)
17
+ model.set_mesh_enabled("#model", "Round_Shield", false)
18
+ model.set_mesh_enabled("#model", "Rectangle_Shield", false)
19
+ model.set_mesh_enabled("#model", "Badge_Shield", false)
4
20
end
5
21
6
22
function on_input(self, action_id, action)
You can’t perform that action at this time.
0 commit comments