Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function CreateUnit. You can see all the information about this function keyword HERE.

[functions] CreateUnit No New Posts Jassdoc

Started by

0 Members and 1 Guest are viewing this topic.

[functions] CreateUnit
on: February 24, 2022, 04:37:37 PM

creates a unit of type unitid for player id, facing a certain direction at the provided coordinates. Returns handle to unit

Example: Create a human footman for first player (red) at map coordinates -30, 0, facing north:
Code: jass
  1. // Jass
  2. call CreateUnit(Player(0), 'hfoo', -30, 0, 90)
  3. -- Lua
  4. CreateUnit(Player(0), FourCC("hfoo"), -30, 0, 90)

See: bj_UNIT_FACING constant for default facing direction of units in BJ scripts and GUI.

Unit facing is in degrees (type: real). Describes unit rotation:
  • 0   = East
  • 90  = North
  • 180 = West
  • 270 = South
  • -90 = South (wraps around)


Started by moyack

Replies: 3
Views: 4325

Started by Jedi

Replies: 5
Views: 14906
General Jass Discussion

Started by moyack

Replies: 40
Views: 59341
Jass Theory & Questions

Started by moyack

Replies: 0
Views: 697

Started by moyack

Replies: 0
Views: 704
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...