Jump to content

gc8

Member
  • Content Count

    3077
  • Joined

  • Last visited

  • Medals

Everything posted by gc8

  1. 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!
  2. @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!
  3. 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?
  4. 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
  5. 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.
  6. Hi if the script returns null my guess is that its exiting with the exitWith statement.
  7. gc8

    [CTI][SP] General's war

    Thanks Biflioi. I will get those bugs fixed. what CPU do you have , if you dont mind me asking?
  8. 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.
  9. 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..
  10. Hi do you have error reporting on? the NEV_fnc_onLoad is missing ";" from the end "}"
  11. even better to also draw and arrow-line on the left to show where the scope is.
  12. gc8

    [CTI][SP] General's war

    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.
  13. 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]; };
  14. 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;
  15. Hi sorry if this is obvious question but what side are you?
  16. gc8

    custom virtual arsenal

    Hi have you read this.
  17. gc8

    Pick up Intel

    works for me I can see the hint message, just tested.
  18. gc8

    Pick up Intel

    so when you approach the object and aim at it, there's no "pick up map" action?
  19. gc8

    Pick up Intel

    I see nothing wrong with the second line. did you put it inside of the map object's init field?
  20. gc8

    Pick up Intel

    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.
  21. gc8

    while loop

    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.
  22. gc8

    allMissionObjects

    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");
  23. 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
  24. that's strange it works for me. do you have -showScriptErrors enabled so you see if the script failed?
×