Jump to content
Coy74

Respawn AI only ground (no water) is possible?

Recommended Posts

I'm having trouble on a mission I'm creating. I am using script "Dynamic-AI-Spawn-System" whose script does not know the name of the author and is not in the document. The problem is this: I need to take a boat on the beach, but at a certain distance from the boat the script is triggered and enemy protect the boat. And then sometimes I come across them in the water. How do I make the emergence of the group be done only on dry land?

 

Another thing, I don't know if I can insert the script here. I've found something related, but I'd like to add that line of script to the existing script. Also because I am in no condition to interpret the lines. Is it possible or does it violate copyright?

 

 

Share this post


Link to post
Share on other sites

Let "Dynamic-AI-Spawn-System" as is. Send a request/remark to the author.

If I understand, your topic is not about respawning, but simply AIs spawning into the water. (something I avoid for infantry or land vehicles in my own spawning modules, but that needs a several lines of code!)

I don't know if you are using Madin Dynamic-AI-Spawn-System, but in this case you can add a code. See "General" section on addon description. It seems you can add something for spawned units, probably in module, passing [_unit] as parameter... So the very basic code could be something like:  [_unit] spawn { params ["_unit"]; if (surfaceIsWater getpos _unit) then { _unit setpos getMarkerPos "yourMarker"} };

where "yourMarker" is a marker you place ashore. You catch the principle.

 

Difficult to help more. I don't play with this mod.

 

Share this post


Link to post
Share on other sites

You helped a lot. I'll take a look at this mode you sent. However I will still see if in the other mode has spawn option next to a marker with a waipoint for the boat, in this case it would also work. Thanks for the help!

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

×