Jump to content
Sign in to follow this  
stephen271276

Spawn unit wont work?

Recommended Posts

What am I doing wrong here?

I want o spawn a single enemy unit via a trigger at a marker position names Marker1

_enemy = createUnit ["TK_GUE_Soldier_AT_EP1", getMarkerPos "Marker1", [], 0, "NONE"]

Share this post


Link to post
Share on other sites

missing groupname, should be:

_enemy = [b][i]groupName [/i][/b]createUnit ["TK_GUE_Soldier_AT_EP1", getMarkerPos "Marker1", [], 0, "NONE"];

Share this post


Link to post
Share on other sites

GroupName has to be the name of a group you have defined beforehand. Have you named the group?

Share this post


Link to post
Share on other sites

Also if you don't have any East units on the map already you will need createcenter

_side = createCenter east;groupName = createGroup east;  _enemy = groupName createUnit ["TK_GUE_Soldier_AT_EP1", getMarkerPos "Marker1", [], 0, "NONE"];

from them on if you want more units in the same group it's just as above.

_enemy = groupName createUnit ["TK_GUE_Soldier_AT_EP1", getMarkerPos "Marker1", [], 0, "NONE"];

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×