A dream comes true.
troop_set_type
?Dumb question, if I do this, do the performances will be the same as the previous WSE2 version ?
I've already did it.
Sorry I should have uploaded the files earlier...
Hope the performances will not be impacted too much.
I will try to explain it to you and for everyone who is interested.
("standart_shader_skin_nobump_nospec_noterraincolor", "standart_skin_nobump_nospec_noterraincolor", "standart_noskin_nobump_nospec_noterraincolor", shf_uses_skinning|shf_uses_diffuse_map, 0, [
"specular_shader_skin",
]),
#AZW Reloaded
("over_border_shader_failed", "skybox", "", shf_static_lighting|shf_preshaded|shf_uses_diffuse_map, 0, [
"diffuse_no_shadow"
]),
("under_border_shader", "skybox", "", shf_static_lighting|shf_uses_diffuse_map, 0, []),
("over_border_shader", "diffuse_no_shadow", "", shf_static_lighting|shf_uses_diffuse_map, 0, []),
]
What do you mean by this ? White textures ?
So this mean, by simply setting
troop_type_mask = 0x000000ff
I can have up to 256 skins ?It's just a question of opinion, Hammer Editor is my favorite one, I agree it's not user-friendly but you get used too quickly and the editor is very complete.
(assign, ":cur_y", 0),
with (assign, ":cur_y", 1500),
because in my loop everytime 3 cases are created, :cur_y
is subdivide by 55 so it's a negative value.I've used
agent_deliver_damage_to_agent
and it's work, thank you @Gotha.(ti_after_mission_start, 0, 0, [], [
(assign, "$spawn", 1),
]),
(0, 0, 0, [], [
(multiplayer_is_server),
(eq, "$spawn", 1),
(try_begin),
(assign, "$spawn", 0),
(store_current_scene, ":scene_no"),
(modify_visitors_at_site, ":scene_no"),
(add_visitors_to_current_scene, 0, "trp_kingdom_1_lady_1", 10, 0, 0),
(try_end),
]),
(ti_inventory_key_pressed, 0, 0, [], [
(multiplayer_is_server),
(display_message, "@Ok"),
(call_script, "script_mgw_test"),
]),
("mgw_test", [ #used to dev
(try_for_agents, ":agent"),
(agent_is_non_player, ":agent"),
(agent_is_alive, ":agent"),
(agent_get_troop_id, ":trp", ":agent"),
(troop_set_health, ":trp", 0),
(try_end),
]),
("mgw_test", [ #used to dev
(entry_point_get_position, pos1, 0),
(store_current_scene, ":scene_no"),
(modify_visitors_at_site, ":scene_no"),
(add_visitors_to_current_scene, 0, "trp_kingdom_1_lady_1", 10, 0, 0),
(try_for_agents, ":agent", pos1, 5000),
(agent_get_troop_id, reg0, ":agent"),
(display_message, reg0),
(display_message, "@Ok."),
(try_end),
]),
try_for_agents
but it's not working.