Total War: WARHAMMER II

Total War: WARHAMMER II

Instant Mount
 This topic has been pinned, so it's probably important
DrunkFlamingo  [developer] 2 Jul, 2020 @ 10:08am
How to add a modded mount
This mod is powered by a lua script. The Database setup of the mount is relevant to make the script work, and should be copied off the examples found in this mods data setup.

To add your mounts to this mod, you must call the following function:
add_mount_unlock_for_character(mount_key: string, subtype_key: string , rank_to_unlock: int)

This function may be called at any time after the AutoMounts.lua file has been required by the game. The args are: the mount's ancillary key, the agent subtype key who may receive this mount, and the level at which the mount should be unlocked for usage.

An example call is as follows: add_mount_unlock_for_character("wh2_main_anc_mount_hef_tyrion_malhandhir", "wh2_main_hef_tyrion", 2)

This function is global and should be available from any mod script, provided that this mod's script has loaded.
Last edited by DrunkFlamingo; 2 Jul, 2020 @ 10:10am
< >
Showing 1-2 of 2 comments
Venris  [developer] 2 Jul, 2020 @ 11:20am 
Rememebr that you need to have that mount skill node set to already unlocked in character_skill_nodes.
The Tactician 29 May, 2022 @ 3:45am 
Can modded characters be added to the lua script too?
< >
Showing 1-2 of 2 comments
Per page: 1530 50