Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
jakkob4682

help with create a "module"

Recommended Posts

without writing a book this is the question....

I have function1 which selects a random position within a specified radius, function2 which creates a marker on that location, my question is - is there a way to spawn groups at random positions within that marker? and if so how then would i refer to those groups INDIVIDUALLY in another script/function so that i can have one group defend the position and have the groups patrol the area? Basically what I'm trying to do is create a patrol/defend function that spawns groups in random positions within a marker area.

Note these are all separate functions, i.e. not one script.

i.e.

loc1 = [] call findLocations;
loc2... so on so forth

mrk1 = [loc1] call markArea;
null = [mrk1] call spawnGroups;
etc etc

Share this post


Link to post
Share on other sites
Sign in to follow this  

×