Jump to content
Sign in to follow this  
rePeteD

Few Questions regarding respawn, AI caching, AI reacting to spotting & scripting

Recommended Posts

Hello there,

I am pretty new to arma mission making and scripting (started with the arma 3 alpha) and need/want a few things for my mission where i either couldn't find something fitting or need further help.

1. Respawn Limit

The first thing i am struggeling with is a respawn limiter. I found this code:

  myRespawns = 0;
 while {true} do {
 waitUntil {!alive player};
 if (myRespawns >= 2) then {endMission "END1"};
 waitUntil {alive player};
 myRespawns = myRespawns + 1;
 };

And it works ( at least for me in a multiplayer test. Not sure if it works for other players). But rather than ending the mission, i would like to stop that player from respawning. One solution would maybe be Kegetys' Spectator script. But how do I use that in the respawn script? My other question is: does the respawn script also affect AI's?

2. AI caching

So I found this script for caching AI: cB AI Unit Caching Demo and it works as intended. But i also found this: Editor based AI script by trigger and would like to test it out, but i don't have arma2 installed, so i can't start the mission which should show how the script is to use. Could someone explain it to me? Or tell me if its worth it and maybe better than the cB one?

3. AI reacting to spotted enemys

I would like to setup some enemy "Reaction Forces" in my mission which react when their scouts see the players and drive/run to the place where the players were seen last. And I would also like to have different reaction forces for different areas. As example: RF1 reacts when player was spotted in area1. But RF2 reacts when player was spotted in area2.

4. General Scripting Questions

- Does it make sense to disable wildlife AI (snakes, rabbits, etc.) in order to get better fps in a mission? And if yes: How can i disable wildlife?

- I am planning to learn java and heard that arma 3 will support/already supports java. My question is: What should I learn if I want to write own scripts? Shall i still start with SQF or just skip it and script with java? Also: is java working already in the alpha to a point where it can be used for missions?

greets

rePete

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  

×