Jump to content
Sign in to follow this  
na_palm

simpleCachev2 for AISSP (AI Spawn Script Pack)

Recommended Posts

I revisited the simpleCache script included in AISSP from spunFIN.

This new version don't requires to execute any controlled militarize and fillHouse script before.

So the mission is a lot quicker accessible, not instant but under one minute from start.

It works fully for SP and MP and now needs only 3 parameters.

Meatballs reminder to not despawn "hijacked" vehicles is also integrated, works in SP and MP, too.

Download v2.1: http://na-palmplace.net/downloads/simpleCachev2.1.zip

from the head:

ARMA3 function LV_fnc_simpleCachev2 v0.2 - by Na_Palm
initial version by SPUn / lostvar

	This script caches fillHouse & militarize scripts.

nul = [[script parameter list], distance, keep count] execVM "LV\LV_functions\LV_fnc_simpleCache.sqf";

script parameter list	=	array of [scriptID, [parameter]]
							scriptID = 1: militarize, 2: fillHouse
							parameter = array of required parameters for the script
							the same as you would use for them direcly
distance				=	distance between player(s) and militarize/fillHouse on where scripts will be activated
keep count				=	true = script will count & save AI amounts, false = AI amount will be reseted on each time it activates again

For server admins, the loop can be switched off with command on server: {swAI_Run = false;}

example 1 (for use in GameLogic):
nul = [[[1, [<parameter for 1>]], [2, [<parameter for 2>]]], 500, true] execVM "LV\LV_functions\LV_fnc_simpleCachev2.sqf";

example 2 (for use in init.sqf or initServer.sqf):
LV_fnc_simpleCachev2 = compileFinal preProcessFileLineNumbers "LV\LV_functions\LV_fnc_simpleCachev2.sqf";
[[[1, [<parameter for 1>]], [2, [<parameter for 2>]]], 500, true] spawn LV_fnc_simpleCachev2;

example 3 (for use in init.sqf or initServer.sqf):
LV_fnc_simpleCachev2 = compileFinal preProcessFileLineNumbers "LV\LV_functions\LV_fnc_simpleCachev2.sqf";
_sCscript_list =[
					[1, [<parameter for 1>]],
					[2, [<parameter for 2>]]
				];
[_sCscript_list, 500, true] spawn LV_fnc_simpleCachev2;

greetings Na_Palm

PS: thought an extra thread for it would be a good idea to not get lost in the other

Share this post


Link to post
Share on other sites

Awesome! Great work Na_Palm! I'll be taking a look at it soon.

Share this post


Link to post
Share on other sites

Hi na palm,i just came across this script.

I use spunfins,and im not sure what this one does exactly.Can it cache editor placed groups?

If so,would you mind elaborating a little to instructions,apoligies, i cant follow it.Infact i use spunfins very easy and quick to use AISSP app.

Thanks

Share this post


Link to post
Share on other sites

Hey, just seeing if anybody could assist me with this script. I can get it to work with just 1 marker on the map but I guess I don't know the proper syntax or something because I tried to add another marker in the map nothing spawns at either marker.

here is the code I have in a game logic

nul = [[[1, [["marker1",2,150,[true,false],[false,false,false],false,[10,0],[3,0],"default",nil,nil,1],["marker2",2,150,[true,false],[true,false,true],false,[10,0],[3,0],"default",nil,nil,2]]]], 500, true] execVM "LV\LV_functions\LV_fnc_simpleCachev2.sqf";

---------- Post added at 03:06 ---------- Previous post was at 01:17 ----------

Hey, just seeing if anybody could assist me with this script. I can get it to work with just 1 marker on the map but I guess I don't know the proper syntax or something because I tried to add another marker in the map nothing spawns at either marker.

here is the code I have in a game logic

nul = [[[1, [["marker1",2,150,[true,false],[false,false,false],false,[10,0],[3,0],"default",nil,nil,1],["marker2",2,150,[true,false],[true,false,true],false,[10,0],[3,0],"default",nil,nil,2]]]], 500, true] execVM "LV\LV_functions\LV_fnc_simpleCachev2.sqf";

I think I figured it out. This is for the Wasteland MOD so I just used the town markers that were already created. It looks extremely inefficient but it works like a charm.

nul = [[[1, ["Town_1",2,150,[true,false],[true,false,true],false,[12,12],[3,0],"default",nil,nil,1]], [1, ["Town_2",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,2]], [1, ["Town_3",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,3]], [1, ["Town_4",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,4]], [1, ["Town_5",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,5]], [1, ["Town_6",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,6]], [1, ["Town_7",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,7]], [1, ["Town_8",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,8]], [1, ["Town_9",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,9]], [1, ["Town_10",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,10]], [1, ["Town_11",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,11]], [1, ["Town_12",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,12]], [1, ["Town_13",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,13]], [1, ["Town_14",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,14]], [1, ["Town_15",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,15]], [1, ["Town_16",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,16]], [1, ["Town_17",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,17]], [1, ["Town_18",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,18]], [1, ["Town_19",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,19]], [1, ["Town_20",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,20]], [1, ["Town_21",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,21]], [1, ["Town_22",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,22]], [1, ["Town_23",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,23]], [1, ["Town_24",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,24]], [1, ["Town_25",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,25]], [1, ["Town_26",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,26]], [1, ["Town_27",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,27]], [1, ["Town_28",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,28]], [1, ["Town_29",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,29]], [1, ["Town_30",2,150,[true,false],[false,false,false],false,[6,12],[3,0],"default",nil,nil,30]]], 500, true] execVM "LV\LV_functions\LV_fnc_simpleCachev2.sqf";

Share this post


Link to post
Share on other sites

Hi Guys,

I would like to use the Ai sript pack and this script to add random ai spawns to my wasteland server. I would appreciate it if somebody would point my in the right direction.

Thanks;)

Share this post


Link to post
Share on other sites

Hi Guys,

I would like to use the Ai sript pack and this script to add random ai spawns to my wasteland server. I would appreciate it if somebody would point my in the right direction.

Thanks;)

23:25:42 Error in expression <nul = [[[1, [<parameter for 1>]], [2, [<parameter for>

23:25:42   Error position: <<parameter for 1>]], [2, [<parameter for>

23:25:42   Error Invalid number in expression

Keep getting this Error Guys

I have the this in the server ini

 

    LV_fnc_simpleCachev2 = compileFinal preProcessFileLineNumbers "addons\LV\LV_functions\LV_fnc_simpleCachev2.sqf";

    [[[1, [<parameter for 1>]], [2, [<parameter for 2>]]], 500, true] spawn LV_fnc_simpleCachev2;

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  

×