HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Create a custom unit at initialization

07-15-2009, 04:27 AM#1
calimo
Im trying to create a custom unit at the map initialization, but when using the function:

call CreateUnit(whichPlayer, 'hpea', peonX + 0.00 * unitSpacing, peonY + 1.00 * unitSpacing, bj_UNIT_FACING)

i dont know what to do, cause i dont want to create the deafault pesant "hpea", but my own custom one. How do i do that and where do i find all those "aliases" for the units?

Tnx for the help, hope i was clear
07-15-2009, 09:02 AM#2
Captain Griffen
Control-D in the object editor to get raw data, and look at the name for the custom unit, it'll be a 4-character ASCII code like 'h000' or something, put that in (if in ' ' it will convert it from characters to a number using ASCII).
07-15-2009, 11:21 AM#3
calimo
tnx :)