Jump to content
Sign in to follow this  
wolffy.au

Task Patrol / Random Group Demo - v1.2

Recommended Posts

Well I've tried the method of a trigger and its not working....

This is the code I put in the On Act. of the Trigger:

0 = [spawn2, "Air", 700] execVM "crB_scripts\crB_taskPatrol.sqf";

"spawn2" is an empty marker that I placed down in the editor and named it "spawn2"..

Any idea whats wrong?

Edited by bigshotking
Revised

Share this post


Link to post
Share on other sites

1) Once you leave the Spawning AO. and then return does it reset the enemies patrolling the area.

2) how can you adjust the distance in which the AI will Spawn in regards to the players distance from the game logic

Share this post


Link to post
Share on other sites
Anyone???

Put " around the marker name: "spawn2"

---------- Post added at 12:18 PM ---------- Previous post was at 12:17 PM ----------

1) Once you leave the Spawning AO. and then return does it reset the enemies patrolling the area.

2) how can you adjust the distance in which the AI will Spawn in regards to the players distance from the game logic

These are questions related to the use of a trigger, not the script itself.

The distance in the script is the patrol radius - there is no spawning trigger in the code.

Share this post


Link to post
Share on other sites

Nice dice Wolffy....

I tried it with a radio trigger and used an empty marker about 50m away from me, activated the trigger... and nothing!

Here is what I put in the Activation field of the trigger:

0 = ["test", "Infantry", 50, ["BIS_TK_INS"]] execVM "crB_scripts\crB_taskPatrol.sqf"; 

null = ["test", "Infantry", 50, ["BIS_TK_INS"]] execVM "crB_scripts\crB_taskPatrol.sqf"; 

Both didn't work..

Any idea what's going on?

-Bigshot

Share this post


Link to post
Share on other sites

Try two things:

- add a 'hint "123";' to your activation line to ensure the trigger is going off as expected OR make it a radio trigger

- do you have an enemy OPFOR unit placed on the editor already? Without it, nothing will spawn. You can make it Presence 0 (so it doesn't show), but the Editor needs it there to initialise OPFOR units.

Share this post


Link to post
Share on other sites

Yeah in my post above I said I had used a radio trigger to make it spawn.

I do have OPFOR down on the map, BIS_TK_INS should be Takistani Insurgents if I'm not mistaken, and those are the only OPFOR I have down at the moment.

To go further into this I also tried using a Gamelogic named "test" and an Invisible H named "test" as well, both failed to work.

I'll try putting a OPFOR unit down and set this presence to 0% to see if that helps!

-Bigshot

Share this post


Link to post
Share on other sites

Sorry man - I double checked, you need a POSITION not a MARKER in that first parameter.

Try:

markerPos "test" OR position tigger, as the frist parameter.

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  

×