You must be logged in to post messages.
Please login or register

AI & RM Scripting
Moderated by Sebastien, Leif Ericson

Hop to:    
Welcome! You are not logged in. Please Login or Register.2 replies
Age of Kings Heaven » Forums » AI & RM Scripting » Unique Units
Bottom
Topic Subject:Unique Units
Zeoka_HS
Squire
posted 07-31-19 04:50 AM CT (US)         
Hi guys! I'm trying to script a map that gives you just a small army instead of villagers and a town center.
This is not a big problem, the problem is the following: I can't seem to spawn unique units based on the civilization.

Is there a command to spawn units based on the civilization or can you just use #const UNIQUE_UNIT in some way?

#const UNIQUE_UNIT -1

create_object UNIQUE_UNIT
{
number_of_objects 3
set_place_for_every_player
min_distance_to_players 3
max_distance_to_players 7
}

Didn't work.
Of course, -1 gives you a crash, but what can I do to make this work? Thanks in advance!
AuthorReplies:
TriRem
Huskarl
posted 07-31-19 05:22 PM CT (US)     1 / 2       
Are you making your map on UserPatch or HD ? I'm pretty sure the UNIQUE_UNIT command doesn't work on HD.

Fluctuat nec mergitur.
Zeoka_HS
Squire
posted 07-31-19 11:52 PM CT (US)     2 / 2       
Iím playing on HD om Steam indeed, with all dlc games.
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Kings Heaven | HeavenGames