Jump to content
Sign in to follow this  
bigshotking

Spawning "Compositions"

Recommended Posts

yes ofc, getPos player and getDir player is what to change, make it:

_newComp = [[b][i](getMarkerPos _markerName), (markerDir _markerName)[/i][/b], "SmallBase"] call (compile (preprocessFileLineNumbers "ca\modules\dyno\data\scripts\objectMapper.sqf"));

then place your marker and rotate it the way you want the composition to face.

Edit: i did not scroll through the .rpt file you posted.

looking at your .rpt print, id say its time for a reinstall maybe of Arma2 on your pc...... or deffinetly a good defrag..

---------- Post added at 06:03 AM ---------- Previous post was at 05:58 AM ----------

this is how my .rpt print turns out:

im using A2, CO + BAF and PMC full, no addons.

patch 1.59, patch 1.10 A2.

"1------SmallBase------["small","base","west","usmc"]"
"2------CityBase01------["medium","base","west","usmc"]"
"3------CityBase02------["medium","base","west","usmc"]"
"4------CityBase04------["medium","base","west","usmc"]"
"5------BunkerMedium01------["medium","bunker","west","usmc"]"
"6------BunkerMedium02------["medium","bunker","west","usmc"]"
"7------BunkerMedium03------["medium","bunker","west","usmc"]"
"8------BunkerMedium04------["medium","bunker","west","usmc"]"
"9------BunkerMedium05------["medium","bunker","west","usmc"]"
"10------BunkerMedium06------["medium","bunker","west","usmc"]"
"11------BunkerMedium07------["medium","bunker","west","usmc"]"
"12------BunkerMedium08------["medium","bunker","west","usmc"]"
"13------BunkerMedium09------["medium","bunker","west","usmc"]"
"14------BunkerMedium10------["medium","bunker","west","usmc"]"
"15------GuardPost_US------["small","guardpost","west","usmc"]"
"16------GuardPost2_US------["small","guardpost","west","usmc"]"
"17------GuardPost3_US------["small","guardpost","west","usmc"]"
"18------GuardPost4_US------["small","guardpost","west","usmc"]"
"19------GuardPost5_US------["small","guardpost","west","usmc"]"
"20------GuardPost6_US------["small","guardpost","west","usmc"]"
"21------GuardPost7_US------["small","guardpost","west","usmc"]"
"22------GuardPost8_US------["small","guardpost","west","usmc"]"
"23------SmallNest_US------["small","guardpost","west","usmc"]"
"24------VehicleShelter_US------["double","shelter","west","usmc"]"
"25------FuelDepot_US------["large","fuel","west","usmc"]"
"26------CheckPoint1_US------["medium","checkpoint","west","usmc"]"
"27------AntiAir1_US------["anti-air","west","usmc"]"
"28------Firebase1_US------["firebase","artillery","west","usmc"]"
"29------FuelDump1_US------["fuel","west","usmc"]"
"30------RadarSite1_US------["radar","west","usmc"]"
"31------VehicleParking1_US------["vehicle","parking","west","usmc"]"
"32------HeliParking1_US------["helicopter","parking","west","usmc"]"
"33------AirplaneParking1_US------["airplane","parking","west","usmc"]"
"34------WeaponsStore1_US------["weapons","store","west","usmc"]"
"35------Camp1_US------["camp","tent","small","west","usmc"]"
"36------Camp2_US------["camp","tent","medium","west","usmc"]"
"37------Camp3_US------["camp","tent","medium","west","usmc"]"
"38------MediumTentCamp_RU------["medium","camp","tent","east","ru"]"
"39------MediumTentCamp2_RU------["medium","camp","tent","east","ru"]"
"40------MediumTentCamp3_RU------["medium","camp","tent","east","ru"]"
"41------AntiAir1_RU------["anti-air","east","ru"]"
"42------Firebase1_RU------["firebase","artillery","east","ru"]"
"43------FuelDump1_RU------["fuel","east","ru"]"
"44------RadarSite1_RU------["radar","east","ru"]"
"45------VehicleParking1_RU------["vehicle","parking","east","ru"]"
"46------HeliParking1_RU------["helicopter","parking","east","ru"]"
"47------AirplaneParking1_RU------["airplane","parking","east","ru"]"
"48------WeaponsStore1_RU------["weapons","store","east","ru"]"
"49------Camp1_RU------["camp","tent","medium","east","ru"]"
"50------Camp2_RU------["camp","tent","medium","east","ru"]"
"51------GuardPost_CDF------["small","guardpost","west","cdf"]"
"52------VehicleShelter_CDF------["medium","shelter","west","cdf"]"
"53------TankDitch_CDF------["medium","tankditch","west","cdf"]"
"54------TankDitch2_CDF------["medium","tankditch","west","cdf"]"
"55------CityBase03------["medium","base","west","cdf"]"
"56------BunkerSmall01------["small","bunker","west","cdf"]"
"57------MediumTentCamp_napa------["medium","camp","tent","east","napa"]"
"58------SmallTentCamp_napa------["small","camp","tent","resistance","napa"]"
"59------SmallTentCamp2_napa------["small","camp","tent","resistance","napa"]"
"60------Camp1_INS------["camp","tent","small","east","ins"]"
"61------Camp2_INS------["camp","tent","small","east","ins"]"
"62------FiringRange1------["armory","firing range","west","us_army"]"
"63------FiringRange2------["armory","firing range","west","us_army"]"
"64------FiringRange3------["armory","firing range","west","us_army"]"
"65------FiringRange4------["armory","firing range","west","us_army"]"
"66------FiringRange5------["armory","firing range","west","us_army"]"
"67------FiringRange6------["armory","firing range","west","us_army"]"
"68------FiringRange7------["armory","firing range","west","us_army"]"
"69------FiringRange8------["armory","firing range","west","us_army"]"
"70------FiringRange9------["armory","firing range","west","us_army"]"
"71------FiringRange10------["armory","firing range","west","us_army"]"
"72------FiringRange11------["armory","firing range","west","us_army"]"
"73------FiringRange_Wreck1------["armory","firing range","wreck","west","us_army"]"
"74------FiringRange_Wreck2------["armory","firing range","wreck","west","us_army"]"
"75------FiringRange_Wreck3------["armory","firing range","wreck","west","us_army"]"
"76------FiringRange_Wreck4------["armory","firing range","wreck","east","tk_army"]"
"77------FiringRange_Wreck5------["armory","firing range","wreck","east","tk_army"]"
"78------FiringRange_Wreck6------["armory","firing range","wreck","west","us_army"]"
"79------FiringRange_Wreck7------["armory","firing range","wreck","west","us_army"]"
"80------FiringRange_Water1------["armory","firing range","water","west","us_army"]"
"81------FiringRange_Water2------["armory","firing range","water","west","us_army"]"
"82------SmallBase_EP1------["small","base","west","us_army"]"
"83------CityBase01_EP1------["medium","base","west","us_army"]"
"84------CityBase02_EP1------["medium","base","west","us_army"]"
"85------CityBase04_EP1------["medium","base","west","us_army"]"
"86------BunkerMedium01_EP1------["medium","bunker","west","us_army"]"
"87------BunkerMedium02_EP1------["medium","bunker","west","us_army"]"
"88------BunkerMedium03_EP1------["medium","bunker","west","us_army"]"
"89------BunkerMedium04_EP1------["medium","bunker","west","us_army"]"
"90------BunkerMedium05_EP1------["medium","bunker","west","us_army"]"
"91------BunkerMedium06_EP1------["medium","bunker","west","us_army"]"
"92------BunkerMedium07_EP1------["medium","bunker","west","us_army"]"
"93------BunkerMedium08_EP1------["medium","bunker","west","us_army"]"
"94------BunkerMedium09_EP1------["medium","bunker","west","us_army"]"
"95------BunkerMedium10_EP1------["medium","bunker","west","us_army"]"
"96------GuardPost_US_EP1------["small","guardpost","west","us_army"]"
"97------GuardPost2_US_EP1------["small","guardpost","west","us_army"]"
"98------GuardPost3_US_EP1------["small","guardpost","west","us_army"]"
"99------GuardPost4_US_EP1------["small","guardpost","west","us_army"]"
"100------GuardPost5_US_EP1------["small","guardpost","west","us_army"]"
"101------GuardPost6_US_EP1------["small","guardpost","west","us_army"]"
"102------GuardPost7_US_EP1------["small","guardpost","west","us_army"]"
"103------GuardPost8_US_EP1------["small","guardpost","west","us_army"]"
"104------SmallNest_US_EP1------["small","guardpost","west","us_army"]"
"105------VehicleShelter_US_EP1------["double","shelter","west","us_army"]"
"106------FuelDepot_US_EP1------["large","fuel","west","us_army"]"
"107------CheckPoint1_US_EP1------["medium","checkpoint","west","us_army"]"
"108------AntiAir1_US_EP1------["anti-air","west","us_army"]"
"109------Firebase1_US_EP1------["firebase","artillery","west","us_army"]"
"110------FuelDump1_US_EP1------["fuel","west","us_army"]"
"111------RadarSite1_US_EP1------["radar","west","us_army"]"
"112------VehicleParking1_US_EP1------["vehicle","parking","west","us_army"]"
"113------HeliParking1_US_EP1------["helicopter","parking","west","us_army"]"
"114------AirplaneParking1_US_EP1------["airplane","parking","west","us_army"]"
"115------WeaponsStore1_US_EP1------["weapons","store","west","us_army"]"
"116------Camp1_US_EP1------["camp","tent","small","west","us_army"]"
"117------Camp2_US_EP1------["camp","tent","medium","west","us_army"]"
"118------Camp3_US_EP1------["camp","tent","medium","west","us_army"]"
"119------MediumTentCamp_TK_EP1------["medium","camp","tent","east","tk_army"]"
"120------MediumTentCamp2_TK_EP1------["medium","camp","tent","east","tk_army"]"
"121------MediumTentCamp3_TK_EP1------["medium","camp","tent","east","tk_army"]"
"122------AntiAir1_TK_EP1------["anti-air","east","tk_army"]"
"123------Firebase1_TK_EP1------["firebase","artillery","east","tk_army"]"
"124------FuelDump1_TK_EP1------["fuel","east","tk_army"]"
"125------RadarSite1_TK_EP1------["radar","east","tk_army"]"
"126------VehicleParking1_TK_EP1------["vehicle","parking","east","tk_army"]"
"127------HeliParking1_TK_EP1------["helicopter","parking","east","tk_army"]"
"128------AirplaneParking1_TK_EP1------["airplane","parking","east","tk_army"]"
"129------WeaponsStore1_TK_EP1------["weapons","store","east","tk_army"]"
"130------Camp1_TK_EP1------["camp","tent","medium","east","tk_army"]"
"131------Camp2_TK_EP1------["camp","tent","medium","east","tk_army"]"
"132------GuardPost_CZ_EP1------["small","guardpost","west","cz"]"
"133------VehicleShelter_CZ_EP1------["medium","shelter","west","cz"]"
"134------TankDitch_CZ_EP1------["medium","tankditch","west","cz"]"
"135------TankDitch2_CZ_EP1------["medium","tankditch","west","cz"]"
"136------CityBase03_CZ_EP1------["medium","base","west","cz"]"
"137------BunkerSmall01_CZ_EP1------["small","bunker","west","cz"]"
"138------MediumTentCamp_GUE_EP1------["medium","camp","tent","east","tk_local"]"
"139------SmallTentCamp_GUE_EP1------["small","camp","tent","resistance","tk_local"]"
"140------SmallTentCamp2_GUE_EP1------["small","camp","tent","resistance","tk_local"]"
"141------Camp1_TKM_EP1------["camp","tent","small","east","tk_militia"]"
"142------Camp2_TKM_EP1------["camp","tent","small","east","tk_militia"]"
"143------MPA_infoKiosk1------["armory","information","kiosk"]"
"144------MPA_infoKiosk2------["armory","information","kiosk"]"
"145------MPA_infoKiosk3------["armory","information","kiosk"]"

Edited by Demonized

Share this post


Link to post
Share on other sites

Finally I got it to work! Thanks Demonized for the little script that allowed me to get it 110% correct!

My next question is how to fill the weapons and vehicles with soldiers... I've seen it done in domination since I've seen the D-30 site with soldiers in the D-30s..

Share this post


Link to post
Share on other sites

Demonized = Arma Genius :yay:

Thanks for taking my terrible scripting and questions

-Bigshot

Share this post


Link to post
Share on other sites

Im a bit confused by this:

Or instead or compiling script every time, you can use BIS_fnc_objectMapper function which does the same.

I have tried this and its not working:

_newobj = [getMarkerPos "two", 180, "SmallBase"] call BIS_fnc_objectMapper;

scriptName "DynO\data\scripts\objectMapper.sqf";
/*
File: objectMapper.sqf
Author: Joris-Jan van 't Land

Description:
Takes an array of data about a dynamic object template and creates the objects.

Parameter(s):
_this select 0: position of the template - Array [X, Y, Z]
_this select 1: azimuth of the template in degrees - Number 
_this select 2: objects for the template - Array / composition class - String / tag list - Array
_this select 3: (optional) randomizer value (how much chance each object has of being created. 0.0 is 100% chance) - Number

Returns:
Created objects (Array)
*/

Edited by cobra4v320

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×