Jump to content
Sign in to follow this  
hogmason

spawning custom composition not working

Recommended Posts

so i am trying to spawn a custom compostition but its not working this is what i have tried

campp = ["taliban_camp", random 360, getMarkerPos "test"] execVM "HOG_scripts\HOG_camps\taliban_camp.sqf";

just in case this is the composition


private ["_objs"];
_objs =
[
["Land_A_tent",[-2.33594,1.51538,0.0048542],48.5307,1,0],
["Land_Fire",[-3.51001,-2.67993,-0.000789642],17.7859,1,0],
["Land_A_tent",[-6.37085,1.0791,0.00257874],298.934,1,0],
["Land_A_tent",[-7.28345,-1.84814,0.00243378],276.064,1,0],
["Land_CamoNet_EAST",[-8.08618,-0.0556641,0.00974464],280.621,1,0],
["Land_Antenna",[-6.35962,-4.99707,0.00752831],235.023,1,0,this addeventhandler ["killed", { Target1_active = 0;publicvariable "Target1_active"; [sgt,nil,rgroupChat,"This Camp can no longer communicate with other insurgents"] call RE;}]]
];

_objs

---------- Post added at 11:04 ---------- Previous post was at 10:52 ----------

ill add to i get no error at all

Share this post


Link to post
Share on other sites

Is that land antenna line correct? Is adding all that code actually used as part of the objectmapper script? What's the code for taliban_camp.sqf?

Share this post


Link to post
Share on other sites

taliban_camp.sqf


private ["_objs"];
_objs =
[
["Land_A_tent",[-2.33594,1.51538,0.0048542],48.5307,1,0],
["Land_Fire",[-3.51001,-2.67993,-0.000789642],17.7859,1,0],
["Land_A_tent",[-6.37085,1.0791,0.00257874],298.934,1,0],
["Land_A_tent",[-7.28345,-1.84814,0.00243378],276.064,1,0],
["Land_CamoNet_EAST",[-8.08618,-0.0556641,0.00974464],280.621,1,0],
["Land_Antenna",[-6.35962,-4.99707,0.00752831],235.023,1,0,this addeventhandler ["killed", { Target1_active = 0;publicvariable "Target1_active"; [sgt,nil,rgroupChat,"This Camp can no longer communicate with other insurgents"] call RE;}]]
];

_objs

the only reason i need the antenns to have a variable is so when it is destroyed i can end that task.

I think its correct i also tried this

["Land_Antenna",[-6.35962,-4.99707,0.00752831],235.023,1,0,[color="#FF0000"]"[/color]this addeventhandler ["killed", { Target1_active = 0;publicvariable "Target1_active"; [sgt,nil,rgroupChat,"ThisCamp can no longer communicate with other insurgents"] call RE;}][color="#FF0000"];"[/color]]


but it diddnt work keep getting missing ] error

Share this post


Link to post
Share on other sites

Assuming that value will even be used you'd want the quotes like this:

["Land_Antenna",[-6.35962,-4.99707,0.00752831],235.023,1,0,"this addeventhandler [[color="#FF0000"]'[/color]killed[color="#FF0000"]'[/color], { Target1_active = 0;publicvariable [color="#FF0000"]'[/color]Target1_active[color="#FF0000"]'[/color]; [sgt,nil,rgroupChat,[color="#FF0000"]'[/color]This Camp can no longer communicate with other insurgents[color="#FF0000"]'[/color]] call RE}]"]

Share this post


Link to post
Share on other sites

ok so i done that and still it did not spawn i even tried removing the custom antenna and just using the original bis camp script that i modified my one from and still it did not spawn it must be to do with how i am trying to spawn it.

Share this post


Link to post
Share on other sites

I can't get custom compositions to work at all. The wiki instructions are just plain wrong or outdated. The link to the files you need is a 404. Using the ones from ArmA2 doesn't work at all, with meaningless or missing errors. All the debug stuff uses a non-functional method of logging errors. Sorry.

Turns out the wiki instructions were built using customized versions of the grabber and mapper scripts and the link to them was dead. This has now been fixed. :)

Edited by kylania

Share this post


Link to post
Share on other sites

i actually just worked that out lol but its still not working when i do this

placed objectMapper.sqf inside of HOG_scripts\HOG_camps\

and i have taliban_camp.sqf in the same folder and in the main folder where the init.sqf is

then i use to spawn it


campp = ["taliban_camp",getDir center,getMarkerPos "test"] execVM "HOG_scripts\HOG_camps\objectMapper.sqf";

but nothing no error no camp nothing lol

Share this post


Link to post
Share on other sites

try placing your custom composition(taliban_camp.sqf) in a folder called "compositions", without the quotes of course

and use the link kylania posted :D

Edited by panther42

Share this post


Link to post
Share on other sites

man thank you so much that is great

---------- Post added at 16:35 ---------- Previous post was at 15:51 ----------

all works fine thanks guys

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  

×