pogoman979
Member-
Content Count
173 -
Joined
-
Last visited
-
Medals
Everything posted by pogoman979
-
oh if you want each crate to have local ammo then you need to use createvehiclelocal for each player (to create their crates), and then just use the normal addweaponcargo commands etc. sorry didnt realise what you were after.
-
addMagazine command and rearm truck bug
pogoman979 replied to d3nn16's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
no it still doesnt work in arma2. addmagazine only adds magazines to the main turret, so you cannot reload secondary turrets. its a shame bis still hasnt fixed this because i imagine would be an easy command to code :/. idk -
are u setting the vehicle's init from the server? a good way to test it is to host your own dedicated server and join it. im not sure whats going on, although i havent tried it in arma2 in arma1 setvehicleinit is the way to go :/.
-
Moving Marker Question
pogoman979 replied to kocrachon's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
yar, my bad. im sure he'll figure it out :P -
Bon the only thing you need to change is this: {AmmoCrate addWeaponCargo _x} foreach MyWeaponPool; {AmmoCrate addMagazineCargo _x} foreach MyMagazinePool; to this: AmmoCrate setvehicleinit ' {AmmoCrate addWeaponCargo _x} foreach MyWeaponPool; {AmmoCrate addMagazineCargo _x} foreach MyMagazinePool; '; processinitcommands; as previously mentioned the addweapon commands are only local, unless they are set in a units init, thus the above change. oh and btw, if you only want the crate to be filled once you should only run the above code on the server, as otherwise the crate will be filled again for each player running the script.
-
.sqs problems
pogoman979 replied to Midhaven's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
you need to use onplayerconnected for changes to markers to show up for jips. in this case you would need to do: onplayerconnected ' _color = getMarkerColor "towermarker"; "towermarker" setMarkerColor _color; '; basically this means that when a player connects to the server, the above code will be run server side, meaning all clients connected will get an update on the color of the marker. since the server was there for when you set the color to green (obviously), getmarkercolor will return green and the new jip players will receive the update. -
Moving Marker Question
pogoman979 replied to kocrachon's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
exec/spawn: createMarker["marker",[0,0,0]]; "marker" setMarkerShape "ICON"; "marker" setMarkerType "DOT"; while {alive humvee} do { "marker" setpos getpos humvee; sleep 1; }; deletemarker "marker"; obviously you can give the marker whatever properties you want, not just the above ones. -
publicvariables and desync
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
ok i'll just use setvariable for the time being, and when we have a proper multiplayer game i'll be sure to post my findings. thanks for the help :) -
publicvariables and desync
pogoman979 posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
i have a script that counts the number of players in an area and adds that number to a figure every second (its basically a numerical version of a progress bar). this script runs on the server, however i've designed a hud that pops up when the player enters the area that displays the progress of the area cap. of course that means i have to broadcast the progress via publicvariable to the player, and so at the moment im broadcasting the progress every second. my question is, will this cause desync in a multiplayer game? i could only broadcast every 10 seconds or so etc, but obviously frequent updates are more desirable. -
publicvariables and desync
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
unfortunately the progress bar isnt as simple as i made it out to be, the increment the progress bar increases by is determined by the number of enemies/friendlies in the area, and as such it would be hard to syncronise this checker across all clients. plus you can leave the area and come back in while the progress still increases on other clients, so its not as simple as just initializing the counter. so you think using setvariable would be ok if i set it every second? or still maybe increase the interval a bit... -
addaction / removeaction
pogoman979 replied to stuguy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
hmmm. your biki seems to be different to the biki i use lol: http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA that one has the addaction command. EDIT: nvm i see that this is the new arma2 biki. yes it is a problem then :S -
if thats the case then my 8800gt runs arma2 like crap, so maybe its something else.
-
mate i have the same problem and i know a few other who do as well. you can put everything on very high and it still looks like crap. my specs: 8800gt 512mb e6750 duo @ 3.4Ghz etc i got the impression from some people that 512mb is not enough video memory these days so i think i may need to upgrade my gfx card. how much memory does your gfx card have? wrt to resolution im running at 1280x1024 (max for my lcd), so is that res too low or something?
-
Construction interface problem
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
yeah i noticed it didnt work over water. they spawned the camera in a rather stupid way: _camera = "camconstruct" camcreate [position player select 0,position player select 1,15]; when the should've put _camera = "camconstruct" camcreate [position player select 0,position player select 1,(position player select 2) + 15]; however i doubt its intended use was to build structures from the middle of the ocean :P -
Construction interface problem
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
it must have a script loaded that sets all the required variables. -
Serialization in the mission namespace
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
wow some of that stuff is actually pretty useful! -
Serialization in the mission namespace
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
cheers that worked. its funny i never used all these setvariable commands until arma2 came along, were they in arma1? -
Construction interface problem
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
with a fair bit of work :P. i'd say its not really worth it, what are you trying to change about the current camera? -
addaction / removeaction
pogoman979 replied to stuguy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
woah thats cool eyeball. makes doing what i posted so much simpler :) -
addaction / removeaction
pogoman979 replied to stuguy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
ok i think i get what you want: _a1 = 0; While{true} do { if(player == XO and player distance mytarget =< 5 and _a1 == 0)then { _action = player addaction ["AC Req","script.sqf"]; _a1 = 1; }; if(player distance mytarget > 5 and _a1 == 1)then { player removeaction _action; _a1=0; }; sleep 1; }; exec this as a script from the init file. hope thats what your after :P -
addaction / removeaction
pogoman979 replied to stuguy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
try putting this in the init.sqf: if(player == XO)then{player addaction ["AirCraft Requisition","script.sqf"]}; -
Construction interface problem
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
not without creating a new addon, the scripts that load the coin camera are in the modules.pbo. -
Construction interface problem
pogoman979 replied to pogoman979's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
you need to place a contruction interface module ingame and synchronise it with the units you want to be able to build. one way of configuring it would be to add this to the init field of the module: [this] execVM "coinvars.sqf"; and then have the script "coinvars" look like the one in my first post. remember you will be only be able to build if you are within the set radius of the module (ie _coin setvariable ["BIS_COIN_areasize",[50,20]]; means the radius is 50m). if you are close enough then an action called "construction" should come up. hope that helps, if really necessary i could create a sample mission :P -
Soldier Names over there Heads
pogoman979 replied to David Baier's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
as of yet the only scripts i have used have been when you point at the player the tag comes up. its very hard to show multiple tags as it requires the constant repositioning of multiple resources, whereas simply looking at a player only requires one resource in the center of the screen. basically i doubt what you want is possible, but someone else might know better. -
Still the same problems? Planes Don't Bomb
pogoman979 replied to Sheps's topic in ARMA 2 & OA - GENERAL
mate, there are tonnes of new awesome things in the editor, the modules and new commands bis have provided are fantastic (hell with attachto we already have heli rappelling (not that its a biggie, whats with some people and fastropes?)). and wrt to planes bombing they do, and they did in arma1 too. designate a target, have a harrier fly over and it will bomb it. if your talking about planes dumb bombing then no they dont do that, but neither do planes irl...