Jump to content

Recommended Posts

Last content update: 6/13/2018 showing how to use the radius for addAction, using params instead of select, adding to arrays with various commands, altering arrays with various commands, get/setUnitLoadout

 

Last content update: 6/10/2018 going through config files and getting details to sort what you want, using radius with addAction, params, and altering arrays with resize, pushBack, pushBackUnique, set, and append and going over  to assist with resize count.

 

Last content update: 5/27/2018 added GUI tutorial for how to make a weapon selector using cfgWeapon

 

Last content update: 5/24/2018 added sector control tutorial

 

Last content update: 5/21/2018

 

This is my arma 3 scripting tutorial series which is aimed to help both people getting into making their own scripts with fairly detailed simple tutorials as well as for the intermediate person looking to create their own features for their missions. The plans for this series is to almost fully cover everything behind the arma 3 missions that people play on a daily basis and have enough content provided in the videos where people can go off and make their own vision for their mission with the knowledge gained. Most of these videos are made on the fly at 1AM-4AM without any pretesting which should give someone the idea of what goes into finding syntax errors and narrowing down a bug that's causing your feature to not function properly. It is also an excuse for you to cut me some slack if you see mistakes :) . A lot of these tutorials are made with multiplayer in mind since I think most people want to play their missions online with their friends(which is why publicVariable has been utilized so much so new people can get a good grasp on the power those commands have). New videos are added to the playlist almost every day so if your stuck with something, maybe it has been covered in a video. If you have any requests on what you would like to see made then please suggest it here.

 

topics covered so far

Spoiler

variables global/local
locality
basic killed event handler and select command
addactions with setPos/setPosATL and halo jump
remoteExec with hints
publicVariableServer
publicVariableClient
publicVariableEventHandler
inidbi2 install
inidbi2 basic database check if exists and create
inidbi2 save and load from/to database
functions
passing variables to functions
return variable from functions
get/set variables
make team deathmatch
make safe zone
make a basic multiplayer kill feed
make earn money with kills + distance bonus
go through files/event scripts and explain how to sort/organize
say3D to create a global sound, made radio
multi demensional arrays with radio
how to make a sector control
making a simple gui
making a gui for weapon selection
pulling info from config files

 

Scripting tutorial playlist

 

Database tutorials with INIDBI2 playlist

 

GUI/Dialog tutorials playlist

 

  • Like 13
  • Thanks 6

Share this post


Link to post
Share on other sites
3 hours ago, gokitty1199 said:

last night i made 10 tutorials and finished around 3am

 

Thank you very much gokitty1199 !

Nice Stuff !

  • Thanks 3

Share this post


Link to post
Share on other sites

Oh thats very nice! As im still a beginner i will have a look at this!

 

Thnx mate!

  • Like 2

Share this post


Link to post
Share on other sites
Just now, CptStampede said:

Oh thats very nice! As im still a beginner i will have a look at this!

 

Thnx mate!

any questions you have just ask, the more answers that come up when someone google searches a question the better chance they have at learning how to create a solution to their task :f:

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

this dude is the best of all the tuts i have watched. me and him have been chatting on steam for the last hour or so. He has helped me a lot in the last day or more. i have lots more to learn and even got a alpha working version of my own twist of Battle Royal working in the Editor. and even MP as well. Thanks again bro. your so helpful even when i have a 1000 questions.

 

Mike

Edited by MikeJGaming
  • Like 2

Share this post


Link to post
Share on other sites

Really nice stuff here, mate!! Simple and clear, it helps a lot mission maker to sort things out.

Keep'em coming brotha!!

  • Like 2

Share this post


Link to post
Share on other sites

Thanks for this man, Im working on my first missions and these are a life saver! 10/10!!

  • Like 2

Share this post


Link to post
Share on other sites

Little bump as a notice for the thread being re sorted with playlists being in their respective places, now there are playlists for various topics, the main one for general scripting, one for using INIDBI2(and soon to be extdb3), and one for getting started on making functional GUI's/Dialogs so you can have a graphical interface.

  • Like 2

Share this post


Link to post
Share on other sites

Really great. 

But can it also be possible to create a marker that changes the color according to the owner of the sector? 

And if there is nobody in the sector or there is balance, and no one would get scores. 

 

  1. West = colorBlue
  2. East = colorRed 
  3. Empty = colorUnknown
  4.  west 5 units and east 5 units (balance) = colorCIV 

Share this post


Link to post
Share on other sites
6 hours ago, Casio91Fin said:

Really great. 

But can it also be possible to create a marker that changes the color according to the owner of the sector? 

And if there is nobody in the sector or there is balance, and no one would get scores. 

 

  1. West = colorBlue
  2. East = colorRed 
  3. Empty = colorUnknown
  4.  west 5 units and east 5 units (balance) = colorCIV 

remember this is arma, anything is possible lol. ill make a video on that tonight and quote you when its up :)

Share this post


Link to post
Share on other sites
13 hours ago, Casio91Fin said:

Really great. 

But can it also be possible to create a marker that changes the color according to the owner of the sector? 

And if there is nobody in the sector or there is balance, and no one would get scores. 

 

  1. West = colorBlue
  2. East = colorRed 
  3. Empty = colorUnknown
  4.  west 5 units and east 5 units (balance) = colorCIV 

its up just a tad different with colors

  1. West = colorBlue
  2. East = colorRed 
  3. Empty = colorGrey
  4.  west 5 units and east 5 units (balance) = colorYellow

Share this post


Link to post
Share on other sites

Skipped through the UI video earlier. I noticed you had ; at end of #include. Not needed, I actually thought it wasn't allowed until you used it just fine, regardless, shouldn't. You should use params command as well instead of the old select 0, 1, etc way. Just feedback is all.

  • Thanks 1

Share this post


Link to post
Share on other sites
9 minutes ago, HazJ said:

Skipped through the UI video earlier. I noticed you had ; at end of #include. Not needed, I actually thought it wasn't allowed until you used it just fine, regardless, shouldn't. You should use params command as well instead of the old select 0, 1, etc way. Just feedback is all.

first part was a mistake, didnt mean to have the ; and it doesnt work with it, shortly after i corrected it after i noticed. yea using params would be alot cleaner to look at, just need to get into the habit of using it

Share this post


Link to post
Share on other sites
4 hours ago, gokitty1199 said:

its up just a tad different with colors

  1. West = colorBlue
  2. East = colorRed 
  3. Empty = colorGrey
  4.  west 5 units and east 5 units (balance) = colorYellow

 

Thank you. You really helped me a lot.

Even now the score comes from every player. Now I can build a small 32 vs 32
sector control game.

  • Like 1

Share this post


Link to post
Share on other sites

Hey.

Needed to fix sector script or add

1. It would be nice to have one point at a time in the sector.

2. The sector must immediately read that player/s are in the area. Not at the same time as the points are shared.

3. (Optional) Can the sector also get respawn ticketing for the sector owner?

Share this post


Link to post
Share on other sites

How do I port this to ArmaII ? My friends and I have an Overpoch server and we keep joining servers with Arma3 made GUIS that have been ported over

Share this post


Link to post
Share on other sites

Your work is awesome. We in the community appreciate it.

Any help you could be, we would appreciate.

 

We are trying to create a hybrid TDM/VIP Extraction gametype. Whereby...Blu For and Op For are involved in a TDM fight in a city, and they each get 12 respawn tickets available. Simultaneously, we want an INDY force that only has 4 respawn tickets and is tasked with escorting a VIP thru the city to an extract at a safe airfield.

 

The problem is ... when INDY runs out of respawn tickets, the game is over. The game ends. We do not want the game to end when INDY runs out of respawn tickets, but WE DO want the game to end when Blu For and Op For runs out of respawn tickets. Hence, Blu for and Op For are pllaying TDM (they can kill/be killed by INDY however) ... while INDY is given a task to get a VIP (there are 2 on the map) to the airfield and out of the map.

 

Could the information in this video

help with our issue? Because, to my untrained eye, it seems like it could help. Any help is appreciated. Thank you.]

Share this post


Link to post
Share on other sites

Hi there, first of all: thanks for the tutorials, they have proofed to be really usefull for me as a beginner with arma scripting.

 

I have a question regarding an optional addition you mentioned in "Arma 3 Scripting tutorial Part 18.5 *Make a better multiplayer radio with say3D(TO BE IMPROVED)*". You mention how to improve the random selection process by removing played songs from the selection pool. Could you maybe provide the code lines you would have used for that? I can't figure it out and I could really use your help.

Share this post


Link to post
Share on other sites

How do i add the indpendet faction to this code?
 

_bluforCount = (_this select 0);
_opforCount = (_this select 1);

if (bluforCount != 0 || _opforCount != 0 ) then 
{
	if (_bluforCount > _opforCount) then
	{
		_scoreIncrease = _bluforCount - _opforCount;
		[_scoreIncrease, WEST] call setScoreFnc;
		"sectorMarker_1" setMarkerColor "ColorWEST";
		};
		
	if (_bluforCount < _opforCount) then
	{
		_scoreIncrease = _opforCount - _bluforCount;
		[_scoreIncrease, EAST] call setScoreFnc;
		"sectorMarker_1" setMarkerColor "ColorEAST";
		};
	if (_bluforCount == _opforCount) then 
	{
		"sectorMarker_1" setMarkerColor "ColorUNKNOWN";
	}
}
else 
{
	"sectorMarker1_" setMarkerColor "ColorBlack";
}

 

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

×