• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] [LUA] SetUnitName native isn't working

Status
Not open for further replies.
Level 12
Joined
Oct 10, 2009
Messages
438
Hey Hive!

Mucking around with some lua and natives, the following isn't working (Unit is spawning, nothing else).
Someone hit me up with some help

Lua:
local crewUnit = CreateUnit(player, crewmember_unit_id, locX, locY, bj_UNIT_FACING)
SetUnitName(crewUnit, "Some cool name!")
 
Status
Not open for further replies.
Top