fencr0c
Member-
Content Count
46 -
Joined
-
Last visited
-
Medals
-
Medals
Everything posted by fencr0c
-
setGroupOwner useability for headless client?
fencr0c replied to target_practice's topic in ARMA 3 - MISSION EDITING & SCRIPTING
If you're spawning everything by scripts, just run the scripts on the HC. -
setGroupOwner useability for headless client?
fencr0c replied to target_practice's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Have a look at FEN_A3 on the workshop it contains something called fen_AIS, you might find it a lot easier than messing around with transferring groups onto the HC. fen_AIS will cache all the groups and vehicles at the beginning of the mission and spawn them back in as required, if an HC is attached to the mission it will automatically use it. FEN_A3 -
Need help with some Math Problems on my Assault Script
fencr0c replied to mr_centipede's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Use BIS_fnc_relPos to return a a location from the AI unit in the direction of its target x metres away. Just watch BIS_fnc_dirTo it sometime returns a negative bearing in which case adding 360 to result will fixed it. -
ArmaScript not working with Notepad++
fencr0c replied to xezon's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Have you tried using Squint, instead of NotePad++? http://forums.bistudio.com/showthread.php?105860-Squint-the-sqf-editor-and-error-checker&highlight=squint Does all the highlighting you're after, plus syntax checks code as you key. -
Paradrop Empty Chutes
fencr0c replied to engima's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I had the same results with para-drops, found that in preview they remain attached to chutes, but when playing on dedicated some units are not attached to chutes. Instead what happened when playing on dedicated is that unit and chute reattached themselves once they hit the ground, unit was alive and continue to act normally after that, very odd. -
Running UPSMON for a unit spawned through a script.
fencr0c replied to Horner's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Not at my computer at the moment, but its something like this: [leader _group,"1","SPAWNED"] execVM "scripts\upsmon.sqf" Add this after your call to BIS_fnc_spawnGroup. -
Arma Edit - Not working
fencr0c replied to Skelt's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Same experience as gnarly_rider, I also switched to squint and haven't looked back since. http://forums.bistudio.com/showthread.php?105860-Squint-the-sqf-editor-and-error-checker&highlight=squint -
Spawning "Compositions" with a name?
fencr0c replied to lockjaw-65-'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Assuming you know the location of the composition and the area it covers I've used the following in previous missions: _cmpObj=call(compile(preprocessFileLineNumbers format["compositions\%1.sqf",[b][i]name_of_composition_file_without_.sqf[/i][/b])); { { deleteVehicle _x; } forEach (nearestObjects[[b][i]location_of_composition[/i][/b],[_x select 0],[b][i]radius_of_composition[/b][/i]); } forEach _cmpObj; -
Spawning units/vehicles from add-ons?
fencr0c posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I have a mission were I’m spawning vehicles and units from add-ons using a server side script. As these vehicles/units aren’t placed in the editor, the add-on is not being added into mission.sqm (addOns[] and addOnsAuto[]). This of course means that players can join the mission without having the add-on causing some strange effects. I’d be interested in knowing how others deal with this? I was considering adding them into the mission using the editor with 0% probability to force the add-on to be lodged in the mission.sqm, interested in other methods or suggestions. -
Spawning vehicles and using the names I give them - questions
fencr0c replied to Lucky44's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
BIS_fnc_spawnVehicle returns an array, second element of array is the vehicle created. -
addBackpackCargoGlobal broken ?
fencr0c replied to wiggum2's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The addxxxxxxCargoGlobal commands have always taking the constraints of the object you're trying to add the thing into consideration, most objects like ammo boxes and vehicles can only contain 2 backpacks. -
Read on a couple of posts that the waitUntil command should not be used as it can degrade performance if there are lots of them. I think I understand the reason, as waitUntil is outside of the scheduling environment (hope that's correct). But what should I use instead, for example on a trigger? _trgBld=createTrigger["EmptyDetector",_loc]; _trgBld setTriggerArea[1500,1500,0,false]; _trgBld setTriggerActivation["WEST","PRESENT",false]; waitUntil {triggerActivated _trgBld}; Should the waitUntil be replaced by a while with a sleep? _trgBld=createTrigger["EmptyDetector",_loc]; _trgBld setTriggerArea[1500,1500,0,false]; _trgBld setTriggerActivation["WEST","PRESENT",false]; //waitUntil {triggerActivated _trgBld}; while {not triggerActivated _trgBld} do {sleep .3};
-
addAction and locality
fencr0c replied to Tankbuster's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
When you say created on the server do you mean created by a script running on the server, cos I had the same problem recently. Got around it using setVehicleInit and processInitCommands Example: _vehInt=format["nul=this addAction [""Unload %1"",""fen_mission\supplytruck_unload.sqf"",[""%1"",""%2""]]",_vehCnt,_vehSqf]; _vehObj setVehicleInit format["%1",_vehInt]; processInitCommands; -
Squint - the sqf editor and error-checker
fencr0c replied to sbsmac's topic in ARMA 2 & OA : Community Made Utilities
Thanks your a star. -
Squint - the sqf editor and error-checker
fencr0c replied to sbsmac's topic in ARMA 2 & OA : Community Made Utilities
Any news on getting this back online? Must have downloaded all the different editors I could find on Armaholic's but none of them come close to the functionality and ease of use provided by SQUINT. -
Talking on phone annimation ?
fencr0c replied to Koni's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Because it played for too long I never tried to integrate into a mission. I found it using the ARMA2 Animviewer, not the OA version do you have ARMA2 running? -
Talking on phone annimation ?
fencr0c replied to Koni's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The animation Smoke is refering to is "CwmnPerc_volaniMobilem" but it runs for too long for what I wanted. -
Random Marker name
fencr0c replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Think you'll find _marker1 is the object, UPSMON wants the marker name which in the example is "marker_%1", obviously substitued. Try _marker1Nam = format["marker_%1",floor(random 100)]; _marker1 = createMarker format["%1", _marker1Nam],getPos _vehicname ]; _marker1 setmarkershape "ELLIPSE"; _marker1 setmarkersize [200,200]; and pass _marker1Nam to UPSMON. -
What is wrong with this task script?
fencr0c replied to Funkman's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Are you sure that variable tskWestObj3 exists? And its "SUCCEEDED" no "SUCEEDED" -
AI walk to vehicle and get in
fencr0c replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Are you sure the cars not locked? -
AI walk to vehicle and get in
fencr0c replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Try using "GETIN NEAREST" it worked for me _wp1=_group addWaypoint [getpos _vehicle,0]; _wp1 setWaypointType "GETIN NEAREST"; -
Change a public Variable
fencr0c replied to unknownx9's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Global variables are only global within the session where they are defined/changed. For example if you have a script running on the server session which sets variable "missionEnd=true", only scripts running on the server session will see that the variable has been created or changed. The same goes for player sessions, if you have a script running on all players connected and the script sets the variable on Tom's session, only scripts running on Tom's session will see the new value, players Dick and Harry and the server wont see the changed value. The publicVariable command broadcasts the variable and its last value across the network to all players and the server session. Another useful feature is that all publicVariables are broadcast to players joining a mission that's already started, effectivily ensuring players JIP get the current value of the variable. So to use public variable successfully you change the variable then use the publicvariable command to broadcast it to all players and the server. Or at least that my understanding of global variables and publicVariable. -
New to scripting need answers please...
fencr0c replied to Steaksauce1337's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
#1 Have you considered using the dynamic object composition scripts to spawn the fortificiations, spawn some enemy soldiers and then use UPSMON "fortify" on the enemy soldiers to get them to man/take cover in the fortifications. http://community.bistudio.com/wiki/Dynamic_Object_Compositions -
How to make ingame screenshot in Arma 2 and OA?
fencr0c replied to bboy's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Press alt-Print Screen to capture active window -
how to use "if" in a script?
fencr0c replied to carlostex's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Suspect it was because something wasn't true. If you find a menator let me know cos I need one as well ;)