IPB


Welcome Guest ( Log In | Register )

 Forum Rules ArmedAssault.info Forum Rules
 
Reply to this topicStart new topic
> Frustrating script problems
crockid5
post 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;
};
 
Quote Post
crockid5
post 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.
 
Quote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 16th July 2018 - 03:31