-
Content Count
3077 -
Joined
-
Last visited
-
Medals
Everything posted by gc8
-
Yes I am going to. Just needed to get Apex code and jets code when I ran to these weird results... the only list of codes I have found was in the getdlc page but it doesn't have all the codes... thx!
-
@HazJ thanks for the reply! But I have some issues getting the getObjectDLC to work. Here's what I put in units init field: 0=this spawn { diag_log format["DLC check: %1 = %2",typeof _this, getObjectDLC _this]; } And this is what results it gave: 13:23:49 "DLC check: B_Plane_Fighter_01_Stealth_F = -1" 13:23:49 "DLC check: B_T_VTOL_01_infantry_F = 395180" 13:23:49 "DLC check: B_Heli_Transport_01_F = <null>" 13:23:49 "DLC check: B_Heli_Transport_03_F = 304380" 13:23:49 "DLC check: B_HeavyGunner_F = <null>" 13:23:49 "DLC check: B_Sharpshooter_F = <null>" What I don't understand that why the B_heavygunner_F and B_Sharpshooter_F wont return the marksman DLC code? And why does the B_Plane_Fighter_01_Stealth_F return -1? What does that mean? thx!
-
So I have working respawn code in MP but what if I want the same to work in SP? It doesn't work in SP, all I get is the end screen. does anyone know how to enable respawn in SP?
-
good that you got it fixed. I took another look on the exitwith line and realized you have unnecessary then command in there... this: if (_grpsize == -1) then { exitWith { systemChat "ERROR(tm_units_spawn): grpsize to spawn is -1."; }; }; should be: if (_grpsize == -1) exitWith { systemChat "ERROR(tm_units_spawn): grpsize to spawn is -1."; }; according to wiki
-
i could be wrong but if you call script right at start of the mission the systemchat messages may not be displayed at all. this is atleast case with sidechat.
-
Hi if the script returns null my guess is that its exiting with the exitWith statement.
-
Thanks Biflioi. I will get those bugs fixed. what CPU do you have , if you dont mind me asking?
-
Falling object from A to B in X seconds
gc8 replied to M1ke_SK's topic in ARMA 3 - MISSION EDITING & SCRIPTING
good points there. here's an updated version: _end = getPosATL player; // change: ATL isntead of ASL _distance = 800; _seconds = 5; _object = "Land_Camping_Light_F" createVehicle [0,0,0]; _object setPosATL [(_end select 0) + selectRandom [_distance, -_distance], (_end select 1) + selectRandom [_distance, -_distance], _distance]; while { _object distance _end > 0.1 } do // change: a loop... { _velocityX = ((_end select 0) - ((getPosATL _object ) select 0)); // change: no dividing _velocityY = ((_end select 1) - ((getPosATL _object ) select 1)); _velocityZ = ((_end select 2) - ((getPosATL _object ) select 2)); _object setVelocity [_velocityX, _velocityY, _velocityZ]; sleep 0.001; }; not sure what's best sleep time there , probably have to try it out. -
Falling object from A to B in X seconds
gc8 replied to M1ke_SK's topic in ARMA 3 - MISSION EDITING & SCRIPTING
it makes the speed of the object to change according to the distance to the end position. Edit: there should be sleep in the loop.. -
Setting a slider's position using the onLoad event
gc8 replied to Neviothr's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi do you have error reporting on? the NEV_fnc_onLoad is missing ";" from the end "}" -
[RELEASE] TypeSqf Editor - [OpenSource]
gc8 replied to engima's topic in ARMA 3 - MISSION EDITING & SCRIPTING
even better to also draw and arrow-line on the left to show where the scope is.- 205 replies
-
- 2
-
I'm releasing alpha version this time. Release v0.9.13 alpha. This release is alpha which means its very early version and can contain bugs. What's new: Static defences for towns. Rewrote unit management to be quicker but this can cause lag on lower end CPUs. (feedback required) Other changes Alpha download only from this link.
-
Falling object from A to B in X seconds
gc8 replied to M1ke_SK's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi made few changes to your script.. _end = getPosATL player; // change: ATL isntead of ASL _distance = 800; _seconds = 5; _object = "Land_Camping_Light_F" createVehicle [0,0,0]; _object setPosATL [(_end select 0) + selectRandom [_distance, -_distance], (_end select 1) + selectRandom [_distance, -_distance], _distance]; while { _object distance player > 0.1 } do // change: a loop... { _velocityX = ((_end select 0) - ((getPosATL _object ) select 0)); // change: no dividing _velocityY = ((_end select 1) - ((getPosATL _object ) select 1)); _velocityZ = ((_end select 2) - ((getPosATL _object ) select 2)); _object setVelocity [_velocityX, _velocityY, _velocityZ]; }; -
Hi here's a code that should do what you wanted (if I understood correctly) _randomPositions = [["toto_1", "toto_2", "toto_3"],["titi_1", "titi_2", "titi_3"],["tata_1", "tata_2", "tata_3"]]; _markers = ["toto","titi","tata"]; { _marker = _x; _ranpositions = _randomPositions select _forEachIndex; _pos = selectRandom _ranpositions; _marker setMarkerPos (getMarkerPos _pos); } foreach _markers;
-
Spawning units on a specific team
gc8 replied to tissue901's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi sorry if this is obvious question but what side are you? -
Hi have you read this.
-
works for me I can see the hint message, just tested.
-
so when you approach the object and aim at it, there's no "pick up map" action?
-
I see nothing wrong with the second line. did you put it inside of the map object's init field?
-
Hi so what you got so far, what scripts you tried? there's -showScriptErrors option in the launcher which is good to turn on when scripting if you haven't already.
-
you need to know when script can be suspended when working with commands like sleep and waituntil. they only work in suspendable environment (such as spawn and execVM.
-
Hi allMissionObjects is an array so you can loop it through with foreach command. and like the wiki says it contains "mission objects (created by or during a mission)" https://community.bistudio.com/wiki/allMissionObjects { player sidechat format["Object: %1 Type: %2 ", _x, typeOf _x]; } foreach (allMissionObjects "All");
-
[Solved] loading screen does not work
gc8 replied to gc8's topic in ARMA 3 - MISSION EDITING & SCRIPTING
yep I know that now :) -
Hi I tried creating a new loading screen via script (I already have one custom loading screen working in the same mission). But for some reason the loading screen gets frozen and I have to alt-F4 out of the game. I think it could be because I'm calling the loading screen functions with a delay and not from the beginning. sleep 2; startLoadingScreen ["test"]; sleep 2; progressLoadingScreen 0.5; sleep 2; endLoadingScreen; // never reaches???? also I don't see the progress bar moving is this a bug? thx! EDIT: Nevermind it was the sleep command that caused the freezing
-
Radiochat / Sidechat / HQ-name
gc8 replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
that's strange it works for me. do you have -showScriptErrors enabled so you see if the script failed?