lozz08
Member-
Content Count
110 -
Joined
-
Last visited
-
Medals
Everything posted by lozz08
-
Are these things possible?
lozz08 replied to Rail82's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Just look at Arma 2 OA's PMC campaign (the one with the guy named poet) All the buildings are destroyed. Even if you cannot carry over states from one mission to the next, you could definitely at least decide to have a bunch of destroyed buildings: place a game logic in the center of the town/city and call it "buildings" without quotes. in its init field type exactly this: buildingslist = getpos buildings nearobjects ["building", x];{_x setdamage 1} foreach buildingslist where x=a radius in meters around the game logic. I just tried it in the editor and it works. If you use that cleverly it wouldn't be too bad. -
oops, that was for arma 2 ...
-
Are these things possible?
lozz08 replied to Rail82's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
2. an easy way would be to name every truck in the convoy and make a trigger for each one with this in the CONDITION field: not(alive truckname) truckname obviously the name of the unit in the editor. in the on activation field: number = number + 1 Then another trigger, with condition number>6 (for 60% of convoy fail) and make that trigger a LOSE type trigger. 3. you can setup a trigger with a countdown timer. In the condition field you put just the word "true" without the punctuation. then you put into its on activation field, an expression that will cause an objective to fail. Done. -
Synchronise trigger with waypoint via script
lozz08 replied to Antigoon's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
plane_extract synchronizetrigger [[group, waypointnumber],[group, waypointnumber]...] group = name of leader of the group that has the waypoint waypointnumber = the number of the waypoint, starting from zero. If the waypoint you want to synchronize is the second one and the group leader's name is alfred, you type plane_extract synchronizetrigger [[alfred, 1]] -
How to create a trigger after X dies 3 times?
lozz08 replied to daimyo21's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Make a trigger, set it to repeatedly. condition: not (alive x) on activation: x_hasdied = X_hasdied + 1 then another trigger condition: X_hasdied = 3 on activation: whatever you want type in X_hasdied=0 in one of your unit's init fields so X_hasdied is defined as the mission starts. -
Use a function/script to store a local variable?
lozz08 posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I need to define a variable that is private, in one script, but then store it use it in another script without making a global variable. Is there a way to do this efficiently? -
AI Report contant to player?
lozz08 replied to peppy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I've had a think and the answer is not quite coming to me, but at least I can point you to some things that could help get you thinking. nearTargets createmarker sideChat deletemarker I'd experiment with (opfor) detected by (blufor) triggers utilising the commands above. -
How reliable ARE event handlers?
lozz08 replied to lozz08's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Well, I got it working perfectly, integrating the EHs into my spawning script. -
How reliable ARE event handlers?
lozz08 posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
My problem is this: I am making a zombie game using undead mod that is dependent on event handlers for hits, and kills of zombies. I have a trigger that covers the whole area, {_x addmpeventhandler ["mphit",{_this exec "hit.sqs"}]} foreach thislist, with independent, present, and repeatedly in the trigger, the same with "mpkilled." in the hit.sqs and killed.sqs, I have the person who hit or killed zombies given score. My problem is that the event handlers most of the time don't fire, in fact, the game's own normal score most of the time doesn't even register a kill. kinda wrecking my mission. -
How reliable ARE event handlers?
lozz08 replied to lozz08's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I am trying to use this script as it's a coop mission and I don't need to filter allunits by side: clearly I don't know how to subtract arrays... the text doesn't come up but it does if I put the text before the subtraction... ---------- Post added at 02:37 AM ---------- Previous post was at 02:07 AM ---------- ok, the script now tells me the value of _newarray. after the inital loop returns the values of the players before anything else spawns, each subsequent loop returns []. How can I prevent the allunits array from "updating" the _oldunits array? because I'm guessing this is not working because both variables point to the same array. -
This is my first ever attempt at making an addon. I just made a plane (read:one flat square, not a jet :o) in 02PE. If I try adding the tex in UV mapping it gives an error in bulldozer even the first time. When I load my texture for the first time in 02, using the faces (shortcut E) dialog, the plane previews in blender properly. However, when I loaded up arma2 and placed the plane in the editor, I got the good old "cannot load texture" error. So I open my model back up in 02, and what do you know? same error in bulldozer, yet it worked the first time in bulldozer. I have tried changing the path in the batch rename thingy from P:\myname\pbofolder\data\filename.paa to just \pbofolder\data\filename.paa but no dice. I have tried with other textures that I know work with other addons. This is my last hurdle to finally get my first addon going in-game, so it's a bit frustrating to be stumbling here... EDIT Oh damn, what a single backslash can do... lol. Well, I was going to ask another simple question anyway. I am trying to use this plane to create a single flat white outline. Currently it has a black background, but I want to use the same texture as the alpha channel to make the whole plane transparent except for this outline I have. Double edit and I found a new problem... In the editor i tried to "addaction" to my plane but no action showed up when the player was near the object...
-
The Undead Mod
lozz08 replied to charon productions's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
in OA I always get zombies repeating phrases in some kind of chernarus language or something, kind of wrecks it for me. Anyone have similar experience in OA? Also when they spawn I hear, "groupm move x meters, ..." -
delete dead units without init
lozz08 posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So I have waves of zombies set up. Once all the zombies in said wave are dead, another wave comes. I want to delete zombies say 15 seconds after they die. I looked up ways to delete units when they die but the methods I found all required stuff being put into init fields, and since these zombies are being spawned by undead mod I can't use init fileds. -
Real problems- things not registering
lozz08 posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hello all, I've been having real issues with a bunch of scripts I've been making. As an example, I made a script using addmpeventhandler mphit. Every time the player hits an enemy, 1 score point is added. most of the time, though, the hits just won't register. It's the same with the mpkilled EH, it just wont register my kills. Could this be because I've been using .sqs files? I'm really trying to get my head around the differences between functions and scripts, I read somewhere that functions are carried out by the engine before anything else, could this solve my problem? Is a function just simply a .sqf file or something seperate? -
COD style injury system for SP
lozz08 replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
yes, needs to be called as .sqs, with [] exec "heal.sqs" in the mission init. -
COD style injury system for SP
lozz08 replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Well, If anybody is still interested, I have pretty much the ultimate COD style heal script. replace the ~x values with your desired values for the speed of healing. As you can see, it is more like the cod system because the healing accelerates, and also, if you are hit while healing, the healing process will not continue unabated. -
Using score to "buy" weapons
lozz08 replied to lozz08's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Well, NVM on the score thing, I figured that out. I'll post my addon Q in the addons & mods section i guess -
Hello all, I am attempting to create a zombie survival mission, in which there are guns on walls in certain places that you can buy with score you made by killing zombies. The question is really in two parts: 1. I am able to addaction to an object and give the calling player a certain weapon and mags with my action's sqs file. What I need is a little section in the script that will A) not allow the weapon to be given if score is below some value, and play a sound if that occurs, and B) remove a certain amount of score if the player can buy the weapon. 2. I need to create a simple object addon pbo that will be a white outline of a picture of the gun player wishes to buy, that I can move in the editor onto a wall or something. (Ie. Nazi zombies from COD)
-
Advanced Fire Script -v0.9
lozz08 replied to haroon's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Fantastic fire script, really like it. GJ! -
So I have waves of zombies set up. Once all the zombies in said wave are dead, another wave comes. I want to delete zombies say 15 seconds after they die. I looked up ways to delete units when they die but the methods I found all required stuff being put into init fields, and since these zombies are being spawned by undead mod I can't use init fileds.
-
Yeah sorry about that, don't know how I found myself in this forum way down the main page to ask this Q.
-
delete dead units without init
lozz08 replied to lozz08's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks a lot guys, I love this community -
Bump.
-
Can people please stop posting that SSDs improve frames per second. They reduce stuttering, and texture load lag. That is what they do. They will NOT increase fps.
-
Will my PC Run this? What CPU/GPU to get? What settings? System Specifications.
lozz08 replied to Placebo's topic in ARMA 2 & OA - QUESTIONS & ANSWERS
Hey guys, I am really leaning towards an am3 1090T X6 from amd, I think it will do well in the future as more programs utilise 6 cores, and it can OC to over 4Ghz apparently. Is Arma 2 capable of utilising 6 cores at all?