Forum Jump :

Author Message

Posts: 1

Level: Member

Country: uk
In-game name:

#1 Posted at 2013-02-11 20:26        
So, yeah i'm running a DayZ just playing around looking to protect some stuff and adding more fun into the game!

in the folder (@BLISS_CHERNARUS/addons/) of my mission file I have a file called init.sqf in side of it is (CheckVM =[] execVM "npc.sqf";)

My npc.sqf (script in progress) is: "Bandit1_DZ" createUnit [[(getpos player select 0), (getpos player select 1), 50]];

So basically I want to spawn him in a certain position, I will change getpos player to the actual pos e.
"Bandit1_DZ" createUnit [[123 3434, 43534 32423, 50]];

I need the position for North west air field, so if someone could give me the North west air field barracks Position that will be great.

Overall I will give him a gun by my improved script.

"Bandit1_DZ" createUnit [[pos1, pos2, 50]"_spawnAIS = this;"];
_spawnAIS allowDammage true;
_spawnAIS setCombatMode "RED";
_spawnAIS setBehaviour "COMBAT";
_spawnAIS addweapon "M4SPR";
_spawnAIS addMagazine "30Rnd_556x45_Stanag";
_spawnAIS addMagazine "30Rnd_556x45_Stanag";
_spawnAIS addMagazine "30Rnd_556x45_Stanag";
_spawnAIS addMagazine "30Rnd_556x45_Stanag";
_spawnAIS addMagazine "30Rnd_556x45_Stanag";
_spawnAIS addMagazine "30Rnd_556x45_Stanag";
_spawnAIS addMagazine "30Rnd_556x45_Stanag";
_spawnAIS selectWeapon "M4SPR";
_spawnAIS setSkill ["aimingAccuracy",1];
_spawnAIS setSkill ["aimingShake",1];
_spawnAIS setSkill ["aimingSpeed",1];
_spawnAIS setSkill ["endurance",1];
_spawnAIS setSkill ["spotDistance",1];
_spawnAIS setSkill ["spotTime",1];
_spawnAIS setSkill ["courage",1];
_spawnAIS setSkill ["reloadSpeed",1];
_spawnAIS setSkill ["commanding",1];
_spawnAIS setSkill ["general",1];

So will that give him the gun & ammo and will attack anything? If someone could please help me and fix it up, so I fully understand the syntax etc. I am good at other languages, I can see it's based off C/C++, but yeah. This is my first go at Arma 2 OA scripting as you can see. I hope to learn and become better as I continue with my server which peaks at 20 players daily. around 7:00 - 9:00 PM GMT. Thanks!

Also: Will the script run after #restart or do I have to fully restart it? or will it just automatically do it?

Added 20 hours 34 minutes later:

Can someone reply & help me? Seriously need this done...

This post was edited by survivingbandits (2013-02-12 17:12, ago)

Author Message

Posts: 20379

Level: Super Admin

Country: nl
Location: The Netherlands
Age: 42
In-game name: Foxhound

#2 Posted at 2013-02-12 17:22        
Do not create duplicate threads, it makes you look like a spammer and here we do not like spammers.

I doubt anyone is going to help you create a MP script which is obviously going to be used for online cheating, why else would you create a unit with all those skills at that specific position at server start. Probably to be able to take up a good position fully armed as an admin of your own server.

Admins lately are the biggest abusers of this game, very sad. Since I have no faith in the fact this script will be used for the right meanings I will just lock your thread, do not bother to post it again as here Cheaters are not appreciated.

Visit my family webshop

This topic is locked, new posts are not allowed.