/*
* Create a footman for Red with facing 185 at 1.5, 3.5
* Display that unit's name, point value, and facing
*
* PrintInteger(integer) //user-defined function
* PrintReal(real) //user-defined function
* Print(string) //user-defined function
*
* CreateUnit //native
* //can't be used in declaration
*
* Player //can be used in declaration
*/
//! runtextmacro Variables()
set player red = Player(01)
set integer foot = 'Hfoo'
set real angle = 185
set real x = 1.5
set real y = 3.5
//! runtextmacro Actions()
CreateUnit( red, foot, x, y, angle)
Print(GetUnitName(GetLastCreatedUnit()))
//! runtextmacro End_Code()
it doesn't work, no unit created on map, and no name printed.....
* Create a footman for Red with facing 185 at 1.5, 3.5
* Display that unit's name, point value, and facing
*
* PrintInteger(integer) //user-defined function
* PrintReal(real) //user-defined function
* Print(string) //user-defined function
*
* CreateUnit //native
* //can't be used in declaration
*
* Player //can be used in declaration
*/
//! runtextmacro Variables()
set player red = Player(01)
set integer foot = 'Hfoo'
set real angle = 185
set real x = 1.5
set real y = 3.5
//! runtextmacro Actions()
CreateUnit( red, foot, x, y, angle)
Print(GetUnitName(GetLastCreatedUnit()))
//! runtextmacro End_Code()
it doesn't work, no unit created on map, and no name printed.....