[Help] Automating AI Island (Napf)

Shane_Martin

New Member
Hi,

Know a little bit of coding but not enough to do what I want to do with my AI Island, which I'm trying to make more interesting for my players.

Basically what I'm trying to do is:
* Spawning four crates (AI Island loot) when all AI on the island are dead (Using WickedAI).
* Opening two gates for the vehicle corridor when all AI on the island are dead.
* Deleting some barriers for the vehicle corridor (Only there to stop players using corridor) when all AI are dead.

Currently AI Island script is server-side but getting called from client files under ifserver.

Would anyone be able to help me out with this please, I know It's a bit ambitious but I feel it would make something truly unique on my server.

Many thanks,

Shane
 
http://forums.bistudio.com/showthre...-all-dead-and-also-1st-man-in-group-is-killed

http://forums.bistudio.com/showthread.php?166250-Activate-trigger-when-group-is-dead

http://forums.bistudio.com/showthread.php?60363-How-to-check-if-a-group-is-quot-alive-quot


wai already has a monitor group script so it can respawn them. you could try to intercept that for this group.
again i say, if you want custom ai, use a custom ai script instead of generic spawn scripts. i would assume you only want this event to occur once each restart ?
 
Last edited:
Hey,

Yes it would only be once per restart, my epoch server currently runs on 4 hour restarts, with the ai and loot only spawning once.

With regard to custom ai scripts, which would be the best one to integrate with what I want to be able to do?

Also, If I link the gates and the barriers to a trigger, would it be best for the activation to be linked to all the ai being killed or detecting that the player has entered the loot building.

Thank you for your reply.

Shane
 
Last edited:
by custom ai script i mean go into 3d editor and place the units and their patrol routes yourself. this creates an sqf file you can execvm from your init.sqf file
i have a video on my website showing how its done .,. i think
 
Since I run Infistar, would this conflict with that or would it run fine.

Think I have settled in the mean time for using a marker and setting conditions.
I will take a look at your website now.

Thank you for replying, I've spent nearly two days now trying to set something like this up.

Shane
 
And another problem, while using the editor while having epoch mod activated is that I don't get the normal editor, which is strange.

Thanks for your time,

Shane
 
Back
Top