Making troops spawn on walls

Users who are viewing this thread

jasoncleung

Regular
You know how when you attack the castles the troops automatically spawn on the castle walls,
I'd like to make a new castle, how can I do the same thing?

Thanks!
 
add a spawn point using the edit mode on a wall and change the enemy's spawn point to this one by editing the top of the mission template.
 
I don't know it anyone are intrested of this, but if you want to change how many units that's spawned at every spawn point, you just change the numbers with red color:

    "castle_attack_walls",mtf_battle_mode,-1,
    "You attack the walls of the castle...",
    [
    (0,mtef_attackers,af_override_horse,aif_start_alarmed,1,[]),
    (0,mtef_attackers,af_override_horse,aif_start_alarmed,8,[]),
    (10,mtef_defenders,af_override_horse,aif_start_alarmed,3,[]),
    (11,mtef_defenders,af_override_horse,aif_start_alarmed,3,[]),
    (12,mtef_defenders,af_override_horse,aif_start_alarmed,3,[]),

    ],

Notes:
1. This will probably change the unit scale for all castles.
2. The line on the top is your start. I've never tried to change this, but you could try. I can't tell what will happen.
3. Do not try to erase the horse-eraser. This can't be done, and I don't know why.
 
You want to get rid of the tf_override_horse flag?  You can't erase it, but you can replace it with a zero if you want it gone.
 
Ok, thanks!

Yes, I'm making a mod with a large wooden castle and wanted to try to storm it with horsemen.
Just one thing I can't find: How to get the npc to attack my castle while I and resting in it? (so that I can defend it)
Do you know how to do that?
 
Back
Top Bottom