Frustrating script problems |
Frustrating script problems |
Jan 12 2014, 19:21
Post
#1
|
|
New Member Group: Members Posts: 4 Joined: 12-January 14 Member No.: 10,387 |
I'm trying to make a little wave based survival game mode, and this is the code I have so far, but the units aren't being spawned, looking around the internet, I've found that "createUnit" will not create any units unless the group exists, but for some reason, the group doesn't exist, I'm clearly calling _group1 = createGroup east; but the group is still null? the isNull _group1 statement fires off and displays the "Doesn't exist" hint in game, does anyone know why createGroup would return null?
CODE _round = 1;
_group1 = createGroup east; sleep 0.5; if (isNull _group1) then {hint "doesn't exist";}; sleep 2; while {isServer} do{ [_group1] execVM "spawnEnemy.sqf"; sleep 1; _wp = _group1 addWaypoint (getMarkerPos "base"); _wp setWaypointType "MOVE"; hint "Set Waypoint"; sleep 1; }; |
|
|
Jan 12 2014, 19:25
Post
#2
|
|
New Member Group: Members Posts: 4 Joined: 12-January 14 Member No.: 10,387 |
I didn't call createCenter first my bad.
|
|
|
Lo-Fi Version | Time is now: 25th June 2024 - 16:17 |