Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Everything posted by Theo1143

  1. So long story short I'm setting up a mission whereby the player has to drop off some objects at a location. Now the problem i'm running into is that whenever the object gets dropped off by the player it could very easily be picked up and the object would still be complete. I also don't wanna set up to many conditions since it is just such a small thing... So therefore did I came up with a solution to remove the object being lift-able together with disabling the simulation. (while having the trigger low enough so it requires you to put it on the ground and on a 3sec timout) (vehicle player) enableRopeAttach false; Which works perfectly but it will still looks ugly when you fly away so I wanna detach the box also on this way. Only thing that I did find was this which does the opposite of what I need it to do:... _success = heli1 setSlingLoad veh1; Is there a way of detaching the slingload ropes from the heli while the player is flying it with a code? And is there a way of checking if a sudden object is attached to the heli with a trigger condition preferably? Edit: Solved If object cargo1 is being attached to the slingload of heli1 shoot trigger: cargo1 == getSlingLoad heli1 Attach sling-load ropes from heli1 to object cargo1: _success = heli1 setSlingLoad cargo1; Detach ALL sling-load ropes from the vehicle heli1: _success = heli1 setSlingLoad objNull;
  2. Theo1143

    [MP] Predefined loadouts

    The thing with this is confusing since it is mainly used in zeus missions, whereby the zeus drops down a module and picks the loadouts you and you team are gonna use. I'm sure there is a way of coding this in the game aldo did I never do and honestly never saw it being done either. So correct me if i'm wrong but i'm not sure if you can do this inside the editor anyhow... When you are zeus drop down a module > loadouts > now double click it and you can even set your own custom loadouts for everyone to spawn with. But you have to be ingame (so the mission has to be live already before you can do this) To see an arsenal in the game itself you just use this line in the init of any object. Unit Init: this addEventHandler ["respawn", {(_this select 0) execVM 'OnPlayerRespawn.sqf'}]; Now if you add that to the init of your units every time they respawn that script will be called. So if we now make the .sqf and add this into that: OnPlayerRespawn.sqf enableSentences FALSE; enableSaving [FALSE,FALSE]; setviewdistance 1500; _this enableFatigue true; removeAllWeapons _this; removeAllItems _this; removeAllAssignedItems _this; removeUniform _this; removeVest _this; removeBackpack _this; removeHeadgear _this; removeGoggles _this; _this forceAddUniform "U_B_CombatUniform_mcam"; for "_i" from 1 to 5 do {_this addItemToUniform "FirstAidKit";}; _this addVest "V_PlateCarrier1_rgr"; _this addItemToVest "NVGoggles_OPFOR"; _this addItemToVest "muzzle_snds_H"; for "_i" from 1 to 3 do {_this addItemToVest "100Rnd_65x39_caseless_mag";}; for "_i" from 1 to 2 do {_this addItemToVest "9Rnd_45ACP_Mag";}; for "_i" from 1 to 2 do {_this addItemToVest "HandGrenade";}; _this addItemToVest "Chemlight_blue"; _this addHeadgear "H_HelmetB_black"; _this addGoggles "G_Combat"; _this addWeapon "arifle_MX_SW_Black_F"; _this addPrimaryWeaponItem "acc_flashlight"; _this addPrimaryWeaponItem "optic_Holosight_blk_F"; _this addPrimaryWeaponItem "bipod_01_F_blk"; _this addWeapon "hgun_ACPC2_F"; _this addWeapon "Rangefinder"; _this linkItem "ItemMap"; _this linkItem "ItemCompass"; _this linkItem "ItemWatch"; _this linkItem "ItemRadio"; _this linkItem "ItemGPS"; _this setFace "WhiteHead_17"; _this setSpeaker "male04eng"; Now every time he respawns he gets this loadout, you could even use a different .sqf for every soldier to.
  3. Theo1143

    Making Markers Disappear

    Why not change ur marker into a empty one?!? http://www.armaholic.com/forums.php?m=posts&q=8786 They want to show a marker after a sudden point, while you can use it to hide you marker to. Empty markers are not being shown for players, so why not use that? So for example you place down a empty marker, and you call this marker MyMarker1. Now whenever you want to show the marker to player you can use this code: "mymarker" setMarkerType "mil_pickup"; And then afterwards to hide it again you can use this: "mymarker" setMarkerType "empty";
  4. Theo1143

    AI Discussion (dev branch)

    I know right... Exactly me point even basic things don't work anymore. As stupid example take the hostpital at altis it is a building who has been there since they released altis. You should think since there is pathing on top of the roof they should be able to walk there, well you WRONG. If you put a heli on top of the roof then order them to go in while he is standing beside the heli. He will walk all the way down walk to the garage then teleports into the heli and sits in the pilot seat like nothing happened. Now say this is a mission where u see a guy running down stairs 10 sec later u hear the engine going on from the heli on the roof. Oh yea that really helps by the realism (sarcasm is real on this one)
  5. It doesn't work because you use TYPE, don't use that and it will work. So trigger: activation - any player ... done Seems to be a bug, shouldn't work either...
  6. Theo1143

    Props Count

    Props is just another word for items, not sure about that one never used it myself. (never had to) Maybe you got something at this: https://community.bistudio.com/wiki/count
  7. Theo1143

    AI Discussion (dev branch)

    Can't agree more I do walk in a lot of trouble with me mission just because of this. The AI works fine when you set it up but then when you play it it will only work 70% of the time. Then again you get problems as being noted above that hes just standing there for ever. This doesn't has to be a big problem but if it is an important part of your mission it will be a big problem. Exactly I don't think we could ever accept it that an AI chopper shoots backwards with hes forward guns. Same thing about the AI turning 360 degree then making an head-shot from 3 clicks away... It is still in the game and it is the reason why i'm not even playing at all anymore. These things have always been in the game aldo I didn't know about the helis the AI problem always has. But the wierd part is that it seemed to be less of a problem 2 / 3 years ago, I don't understand why that is. Back in the day I could atleast let them do some basic stuff, now they even got problems with that. And then again bug fixing this is imposeble since there is nothing to fix, except using unitplay for units to... (rip fps)
  8. Theo1143

    UnitPlay issues

    Yes, you didn't set it up the right way. Honestly got this always when I wanna do it quickly and overlook things. First off you need to use the vehicle name for the recording and the play. Secondly inside you init you got like : (MyPath1 = compile preprocessFile "Paths\path1.sqf";) Sooo MyPath2 MyPath3 but also the Paths\path1.sqf Paths\path2.sqf Paths\path3.sqf etc... Make sure the paths are both different, then go into the path scripts them-selves and again look for the path numbers. Make sure they are the right ones and are not the same for both of the scripts. As last we got the record script not recording your unit but recording you last unit. Pretty sure it is one of above, if not more.
  9. He gives the impression he knows how to script so opening a script who exactly does that also shows him different ways of doing it. I'm talking about scripts not mods like MCC, I never said he couldn't ask anything on here so I got no idea what u were trying to do there.
  10. Just gonna drop this here, you know armaholic is full with scripts who does exactly this? You can use them yourself already how they are or look into them and see how they did it? Got a hard time recalling the name but about a year or 2 ago I've used one of them to which was even multiplayer capable. Which allowed u to recruit any AI from the game from a nice GUI and automatically deleted them once u kicked them out of u group. You can more compare it with a shop script but now it gives u AI and joins it up in your group while you are the leader. Its a nice thing if u set this up beside a barracks and have the new spawned dudes running out the barracks... All roads lead to Rome.
  11. Theo1143

    Making car undrivable

    Why is everybody trying to confuse this dude? Yes you want to lock the vehicle no you don't wanna do this by a script when u can do it with 3 mouse clicks. Right click at the car go to properties and put the car on "LOCKED", now you gonna need to know when to unlock the car. As from your example lets add it at the moment you freed the hostages so add this into that trigger: Truck1 setVehicleLock "UNLOCKED"; You don't "need" to name the truck but it does help a big deal since you always know what is what. And since when you don't name it you need another way of telling the code which vehicle to unlock so lets call it Truck1 for this example. Never put the simulation off especially with the door unlocked since the player will see weird things...
  12. Yeah i'm not a scripter myself, already found ropeAttachedObjects but didn't got any wiser out of it. cargo1 == getSlingLoad heli1 Is exactly where I was looking for, Thanks a lot
  13. To detach the sling load with a script: (old way doesn't seem to work anymore, this one does) _success = heli1 setSlingLoad objNull; So that problem has been solved, now only remains the condition to check if an object has been attached to a heli. So for example when Heli1 attaches the Object AmmoBox1 the trigger will shoot. Anyone knows a way of doing this?
  14. add hint "works"; at the activation of the trigger, so you know it works... + above
  15. What I always do for this is just spawn a box in the editor and add this to the init: ["AmmoboxInit",[this,true]] call BIS_fnc_arsenal; Now go ingame and open the arsenal then pick whatever you want, exit the arsenal > put it in your bags etc etc... And again back to the arsenal to save or export it for use... If you know all the names it is easy to just add it like 7erra says... But if not, yea it might be easier to just use the arsenal instead. When you click on export it automatically removes everything and add's the things you've just exported(also when u put things in u bag as explained). Now you can just paste this code directly into the init of the players unit.
  16. The thing especially with arma 3 editor is is that it is all about smoke and mirrors. It doesn't matter which of the options you take from above everything works perfectly after you've flushed out the unintended bugs. It is easy to write a script if you know what you need, writing a script for someone else can be tricky therefor. Just look around to what we've all been saying and for sure one of them will work for you to.
  17. First off let me start off with that the new modules really add up especially for the people under us who are not scripters. While using it I found out that you can't place 2 at 1 object which causes problems with sudden objects. Like the power/phone poles if you destroy them the line will be broken to, however if you hide the object the line will still be there. If you could place 2 modules at 1 object u could set 1 to hide and 1 to destroy, or simpler just destroy the object once we hide it which prevents a lot similar situations to. Also if objects as seen in the video are to close to each other the position will reset every time also seen in the video... Everything said above is shown in this video:
  18. Oh yea that stuff is amazing, I only don't like it that you need to run it off a script first. and also when u come to close u don't even see the inventory button because you are actually standing inside it. (prob would work better on bigger items) Whatever, everyone hes own preference. Cheers looks amazing!
  19. There are a lot of boxes and items like this : ... which have no inventory. Is there any way to add an inventory to this item?
  20. If you want to respawn with sudden gear you could use a script like thos: http://www.armaholic.com/page.php?id=10785 which is pretty straight forward to setup. You could even add the loadouts from your arsenal although did i never set that up myself yet... Variable just means something that can change, now talking about "player" is no variable name since it is the player. But whenever you script uses player in multiplayer ALL players will get what the script did, like I said that is probably what is going on... Remove the script you use to retain you gear and use the link above.
  21. A little bit more info? I mean if you use player as name in multiplayer, ofc if something happens to one player it happens to all players. "Person controlled by player. In MP this value is different on each computer and on dedicated server this value is null. In Intros and Outros this isn't set by default and must be assigned." What are you using to give them the loadouts?
  22. Hahaha actually this was one of the first things I tried, hiding a real box over the "ugh ugh" fake ammobox but the action would be removed with it to. This works amazing, thanks a lot! this stuff is amazing, change the "(_this distance _target)<1"]; to "(_this distance _target)<3"]; and it just works like a normal box.
  23. No thanks i'm really looking into "adding an inventory" There must be way with an addaction which has a script that acts as the container which opens once a player hits the button. Or I was kinda hoping for a easier fix, isn't there something like this add cargo ?!? No this was the first thing I tried. (word game, ammo box is no ammo box lol... it is just a static empty object)