Search the Community
Showing results for tags 'game logic'.
Found 4 results
-
Game Logic Making map trees indestructible
outwardpanicjoe posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Trying to make some map trees and another map object not fall over due to artillery strikes in which the cover makes it unplayable so I was trying to find a way to make the map objects not take damage or at least increase their resistance. -
Hello there! I'm working on a remake of the "East Wind" campaign where I replace every NATO unit with a Bundeswehr unit (BWMod). I'm currently working on the first mission of the campaign, now here's my problem: There's a game logic entity where MacKinnon's vehicle is supposed to lie on the side. I replaced the Hunter with an Eagle. Now when I'm starting the mission, the Eagle is stuck in the ground. Mods: BWMod Bundeswehr ReTex Pack CBA_A3 I'm not a programming god and I have no idea how to fix this issue! Any ideas? Thanks in advance! Images: Game Logic in editor: https://ibb.co/2YqB3Rm How it looks like in the mission: https://ibb.co/9y1k8wy Game logic code: https://ibb.co/YWs2tLc Vehicle code: https://ibb.co/PgFG74h PS: Sorry for my english skills...
- 9 replies
-
- game logic
- scripting
-
(and 2 more)
Tagged with:
-
Tried to do a search, and found alot of different things but could not to what i saw, find something spesificly like this. So, down to business... First of all, go to the "Debug Console" in the "Tools" menu you have in your Eden 3D editor. Type in the following: do3DENAction "ToggleMapIDs"; ..and press the "LOCAL EXEC" button. This will show you all the object IDs to all default map objects (once you have zoomed in close enough), such as radio towers, buildings, bridges, bushes, trees so on and so forth etc. etc. etc. Run it again to turn it off again. Now, I’ll type up an example on how to blow up a default radio tower on a map, and get a trigger to register this as part of your mission. Step 1: Find yourself a suitable target, in our case - a radio tower on the map by default. Step 2: Place a "Game Logic" on top or near it, from "Objects" in the "Logic Entities" selection (F5 (Systems) --> Logic Entities --> Objects --> Game Logic). Step 3: In that the "Game Logic" init field, type as an example: Target1 = (getPos this nearestObject 224112); // Target 1 is what the "Variable name" will be. // 224112 is the object ID of that specific radio tower/object, now visible on the map, from running the code at the top of this post in your debug console. Step 4: Place a trigger. In its "Condition" field, type this: !Alive Target1; ..and to check that this works, you can type this in the "On Activation" field: Hint "Tower Destroyed!"; Step 5: Now, place your charges - or whatever means you wish to destroy said tower/object - and the trigger should fire once its destroyed. I needed this, and have been through several posts to find "bits and pieces" of what i needed to make this - hoping it will help others as much as it has me :)
-
HI All, I Would like to get all the doors on a hanger to close on-mission start but using this code: 0 = [getpos this, 100] spawn { sleep 0.1; { _x animate ["Door1", 1, TRUE]; _x animate ["Door2", 1, TRUE]; _x animate ["Door3", 1, TRUE]; } foreach ((_this select 0) nearObjects (_this select 1)) } This is what happens: Does anyone have a way or think they could help me fix this? Thanks In advance Tom