hridaysabz
Member-
Content Count
132 -
Joined
-
Last visited
-
Medals
Everything posted by hridaysabz
-
Hey Tasev, adding to terox's post, there are a bunch of crazy improvisation mcc missions on a server "Hridaysabz" (Yes, I host it.) If you like that kind of stuff jump on by filtering host to hridaysabz.
-
Hey B.I community! Hope you've been enjoying those good missions out there! I've been trying to figure out a scoring system for players but i can't seem to get it figured. Basically I need a script for ranking a player based on his kills. For example 0-10 kills is level 1 10-30 is level 2 and so on. Any ideas?
-
Using Passed Variables
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, i'm trying to make it so that after 15 minutes of holding a sector it runs a script, how would i make that possible? -
Hey. I'm having some difficulty using these variables the sector module passes. Passed arguments are: <ownerside> <previousownerside> <module> First of all, what would i do to put these in a script? In the expression, would i say nul = [] execVM "sitechange.sqf"? In the script, Would I use _newowner = <ownerside>? and What would it return?
-
Hey all, I'm back. Quick question, is there any way that i can change the side that respawns on a respawn module, depending on who owns a sector?
-
Need help with this script(again...)
hridaysabz posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
/* Welcome to the Sea Ammobox script. This script places a random ammobox in the sea at defined markers. Variables defined can be changed to suit your needs. Code by : Hridaysabz */ //Ammobox types listed for your discretion. //Classnames | Type //Box_NATO_Ammo_F | Ammo //Box_NATO_Wps_F | Weapons //Box_NATO_AmmoOrd_F | Explosives //Box_NATO_Grenades_F| Grenades //Box_NATO_WpsLaunch_F| Launchers //Box_NATO_WpsSpecial_F| Special Weapons //B_supplyCrate_F | Supply Box //Box_NATO_Support_F | Support Box //Box_NATO_AmmoVeh_F | Vehicle Ammo Box //Variables _ammobox = [box_NATO_Ammo_F, Box_NATO_Wps_F, Box_NATO_AmmoOrd_F, Box_NATO_Grenades_F, Box_NATO_WpsLaunch_F, Box_NATO_WpsSpecial_F, B_supplyCrate_F, Box_NATO_Support_F, Box_NATO_AmmoVeh_F] call bis_fnc_selectRandom; _spawnpoints = [diverbox, diverbox2, diverbox3, diverbox4, diverbox5, diverbox6]; //Markers to be spawned on. //Do not edit below this. if (!isServer) exitWith {}; _ammoboxcreate = "_ammobox" createVehicle (getpos _spawnpoints); _pos = getpos "_ammobox"; //hint with ammobox details and marker - Editable hint "hint format ["Located ammocrate at %1",_pos. It has been marked on the map. It is an underwater stash so you will need to get diver equipment."]; ///////////////////////////////////////////////////////////////////////////////////////////////////////////// _marker = createMarker ["DiverMarker", _pos]; "DiverMarker" setMarkerType "Flag"; "DiverMarker" setMarkerText "Underwater Stash"; This doesn't work for some reason...need help! -
Need help with this script(again...)
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Alright, yes, I've been making things on this from the alpha but yes, I will use the fx more now. I don't seem to understand how to implement it though. Nevermind about the trigger, random times seem to be working fine. Thanks guys, I owe you guys one. ---------- Post added at 19:27 ---------- Previous post was at 19:23 ---------- If you're interested, check out my maps on steam. Same name there as here. -
Need help with this script(again...)
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks guys, works now credit goes to you guys! You guys make me feel bad about my coding skills every single day. ---------- Post added at 09:24 ---------- Previous post was at 09:23 ---------- Anyway to make a trigger exec this on random times? -
Need help with this script(again...)
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Not working guys, the points are markers, so it should work right? -
Need help with this script(again...)
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The code's been updated, it doesn't work with this either. -
Need help with this script(again...)
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Alright, i'll get to it. thanks. ---------- Post added at 09:44 ---------- Previous post was at 07:44 ---------- Hey, how would I go about putting all the variables in the while loop? ---------- Post added at 10:50 ---------- Previous post was at 09:44 ---------- While triggering the script I get this issue: error getpos: undefined variable in expression box_nato_ammo_F -
Apocalypse The Beginning of the End. Apocalypse is a post-apocalyptic map based on an infestation hitting Altis, wiping every single affected person off the earth. In an immediate reaction to this, Independent and NATO forces have taken hold off key resources on the Island. Few survivors, such as you have now to regroup and form a base, taking back these resources from the reckless, relentless forces that hold them. Apocalypse is still in Alpha, being rather young it won't be stopped from new features, it is to hone teamwork skills and also to help display the powers of the editor. Features: Up to 6 players Weapon Stashes Competitiveness No AI on your team Planned Features: Dynamic Spawn Dynamic Objectives Base Building Hours and Hours of Playability I'm also looking for help with script and code, so if anybody's interested, hit me up here or on steam. I put my utmost effort into this for you guys, So... If you're feeling generous, Special thanks to: ArmaIdiot - tutorials Kylania - scripts Victor050190 - countless hours of testing Craig(DZS) - one script Viren - indirectly gave me the idea Workshop Download NOTE: All feedback is appreciated and taken into great consideration.
-
How to spawn units in sea
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks guys, the position find seems fine but the code as a whole doesn't work. ideas? -
Hey everyone. I was wondering if it would be possible to filter the sea on a marker that spans the entire map? I'm writing a script where I need the ammobox to spawn in a place anywhere in the sea. I wasn't wanting to place several markers and selecting one randomly, but if that's how it has to be done, so be it. Plus, can you correct me on this script? Doesn't seem to be working right. /* Welcome to the Sea Ammobox script. This script places a random ammobox in the sea at defined markers. Variables defined can be changed to suit your needs. Code by : Hridaysabz */ //Ammobox types listed for your discretion. //Classnames | Type //Box_NATO_Ammo_F | Ammo //Box_NATO_Wps_F | Weapons //Box_NATO_AmmoOrd_F | Explosives //Box_NATO_Grenades_F| Grenades //Box_NATO_WpsLaunch_F| Launchers //Box_NATO_WpsSpecial_F| Special Weapons //B_supplyCrate_F | Supply Box //Box_NATO_Support_F | Support Box //Box_NATO_AmmoVeh_F | Vehicle Ammo Box //Variables _ammobox = [box_NATO_Ammo_F, Box_NATO_Wps_F, Box_NATO_AmmoOrd_F, Box_NATO_Grenades_F, Box_NATO_WpsLaunch_F, Box_NATO_WpsSpecial_F, B_supplyCrate_F, Box_NATO_Support_F, Box_NATO_AmmoVeh_F] call bis_fnc_selectRandom _spawnpoints = [diverbox, diverbox2, diverbox3, diverbox4, diverbox5, diverbox6] //Markers to be spawned on. //Do not edit below this. if (!isServer) exitWith {}; while {alive player} do { _spawncrate = "_ammobox" createVehicle (getMarkerPos "_spawnpoints"); }; _pos = getpos "_ammobox" //hint with ammobox details and marker - Editable hint "We have located an ammobox at _pos, it has been marked on the map. It is an underwater stash so you will need to get diver equipment." ///////////////////////////////////////////////////////////////////////////////////////////////////////////// _marker = createMarker ["DiverMarker", _pos] "DiverMarker" setMarkerType "Flag" "DiverMarker" setMarkerText "Underwater Stash"
-
Spawngroup and attack error
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, Iceman. Works fine! -
Hey all, I've compiled a little script that needs fixing ASAP. What this does is spawns a group at a marker randomly selected from an array, locates the nearest town(I have gamelogic placed at every town) and then moves there. However, it doesn't seem to work. I'd be grateful if you could see what the error is. Trigger parameters: Act: None Cond: this && ceil random 2 > 1 On Act: nul = [] execVM "WaveSpawn.sqf" WaveSpawn.sqf: _centerpos = [sofia, Kalochori, Molos, Paros, Delfinaki] call bis_fnc_SelectRandom _spawn = [spawn, spawn2, spawn3, spawn4, spawn5, spawn6, spawn7, spawn8] call bis_fnc_SelectRandom _town_name = text _closesttown; _town_pos = position _closesttown; if (!isServer) exitwith {}; //Anthonyfromtheuk - Hunter Squad Script. //Credits where due to Cobra4v320 and Zenophon. private ["_side", "_Squad1", "_leader"]; _side = createCenter EAST; _Squad1 = [getMarkerPos "_spawn", EAST, ["o_soldier_TL_F", "O_HMG_01_F", "O_SoldierU_GL_F", "o_soldier_AA_F"], [], [], [0.3, 0.6]] call BIS_fnc_spawnGroup; _leader = leader _Squad1; _leader move (getpos _centerpos); _Squad1 setCombatMode "RED"; _Squad1 setBehaviour "Aware"; 0 = _Squad1 spawn { while {true} do { sleep 5; if ((_centerpos distance (leader _this)) > 3000) exitWith { { deleteVehicle _x; } forEach (units _this); }; }; }; while {true} do { sleep 5; if (({ alive _x} count (units _Squad1)) == 0) exitWith { { deleteVehicle _x; } forEach (units _squad1); deleteGroup _Squad1; }; _leader = leader _Squad1; if ((unitReady _leader) && {(alive _leader)}) then { sleep 10; if (({ alive _x} count (units _Squad1)) != 0) then { _leader = leader _Squad1; _leader move (getPosATL player); _Squad1 setCombatMode "RED"; _Squad1 setBehaviour "Aware"; }; }; }; hint "Opfor are attacking _centerpos Get over there and defend it from the attackers!"
-
Spawngroup and attack error
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Haven't tried calling it yet, haven't been on my system since yesterday. Although will this work for towns too?\ It works fine if i need a particular friendly taken out, but i want it to choose the nearest game logic from where it spawned and then move to the town. I'd love it if that's possible. Thanks. -
Spawngroup and attack error
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
But how will this work when I need to call in on a city? -
Hey all, I was requiring a script on how I can add a vehicle every time a sector is taken from a side, any ideas?
-
I think the title says all. How would I go about using this function?
-
Help with variables
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks Larrow -
Hey all, I was trying to work out the variables for a little script i'm writing. So two questions, how do I apply %1, and how do I use veh_name? I also would like to find somewhere that has variables like these documented. Thanks.
-
Help with variables
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Alright, thanks guys. ---------- Post added at 15:00 ---------- Previous post was at 14:59 ---------- That would completely defeat the purpose of writing %1. -
Help with variables
hridaysabz replied to hridaysabz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Oh thanks, I was looking for a variable that would replace the %1 with the name of the vehicle. For example, I have a vehicle named hazler and a vehicle named typhoon. I want it to be so that when one dies in a notification it shows, "hazler is dead!" or "typhoon is dead!" but is there is a quick way of doing so? -
How Did You Learn To Script?
hridaysabz replied to infiltrator_2k's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I started scripting when i bought ArmA 3(Yes, couple o' months, don't criticise please) and when i discovered the power of the editor i started watching videos and then noticed how every alternate video had this cool 'code' in it. I headed over to the wiki to find about how this code can be used in different situations. I was amazed and then looked into writing scripts. Now i can try to write scripts with a 50/50 chance of it actually working(Calm down, i suck at it but please be patient)I referred to the wiki, here: https://community.bistudio.com/wiki/Category:Scripting_Topics (You can too!) I found that to be a great tool Obviously, the helpful community is always here to post and help on your thread(You must have observed all the people on this post) To conclude, i would like to suggest a small guide i started. http://steamcommunity.com/sharedfiles/filedetails/?id=180166308