New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question/help - ammo boxes in static mission config #119
Comments
All looks well, please post your complete file for review. |
there it is :) chernarus.sqf: if(isServer) then {
//skalisty
_crate_type_skalisty1 = crates_large call BIS_fnc_selectRandom;
[_bedny_skalisty1,[10,ai_wep_sniper],[10,crate_tools_sniper],[7,crate_items_high_value],[4,crate_backpacks_large]] call dynamic_crate; // [_bedny_skalisty3,[1,ai_wep_launchers_AT],[2,crate_tools_sniper],[1,crate_items_high_value],[1,crate_backpacks_large]] call dynamic_crate;
//skalisty //skalisty //skalisty //skalisty //skalisty //skalisty //skalisty //skalisty //skalisty
/* zatim nerozpoznaj hera od bandity // skalisty - brana // skalisty - oploceni // skalisty - oploceni 2 // skalisty - oploceni 3 // skalisty - oploceni 4
/*
//velke letiste
}; |
Looks like a persistence issue then. Normally persistence gets sets by the Wicked AI mission system, but since this is a static mission you have to do it yourself. Try setting below variables to each of the crates in order for them to become persistent. _crate_type_skalisty1 setVariable ["ObjectID","1",true]; // Necessary for some anti-hack solutions
_crate_type_skalisty1 setVariable ["permaLoot",true]; // Makes the cleanup section skip this one
_crate_type_skalisty1 allowDamage false; // Optional if you want the crate to be industructable |
thanks, i will try it after i get home from work :) |
ok when i use variable _crate_type skalisty1 for set variable i got this in log: _crate_type_skalisty1 setVariable ["ObjectID","1",true]; nut vhen used _bedny_skalisty1 after : _bedny_skalisty1 = createVehicle [_crate_type_skalisty1,[13702.116, 2902.0452, -3.4332275e-005],[],0,"CAN_COLLIDE"]; its ok (no error) and still testing if amoboxes will be delated... |
ok this seems to work... : _crate_type_skalisty1 = crates_large call BIS_fnc_selectRandom;
_bedny_skalisty1 setVariable ["ObjectID","1",true]; // Necessary for some anti-hack solutions now testing it on all 3 crates |
this code works for me: _crate_type_skalisty1 = crates_large call BIS_fnc_selectRandom;
_bedny_skalisty1 setVariable ["ObjectID","1",true]; // Necessary for some anti-hack solutions _bedny_skalisty2 setVariable ["ObjectID","1",true]; // Necessary for some anti-hack solutions _bedny_skalisty3 setVariable ["ObjectID","1",true]; // Necessary for some anti-hack solutions [_bedny_skalisty1,[10,ai_wep_sniper],[10,crate_tools_sniper],[7,crate_items_high_value],[4,crate_backpacks_large]] call dynamic_crate; }; several restarts, almost six hours and crates are still there thanks for help |
Hi,
can i have something wrong(missing) in my setup or its bug/normal behavior with ammoboxes in static/chernarus.sqf
i have setup there small bandit camp, with 2 spawned vehicles, AI, static guns all working fine but boxes dissapear after several minutes after restart (i dont look at yet it preciesly, but seems like there is connection with beginnig or ending of first mission after server restart)
there is no error in RPT, or elsewhere
i have this:
_crate_type_skalisty1 = crates_large call BIS_fnc_selectRandom;
_crate_type_skalisty2 = crates_large call BIS_fnc_selectRandom;
_crate_type_skalisty3 = crates_large call BIS_fnc_selectRandom;
[_bedny_skalisty1,[10,ai_wep_sniper],[10,crate_tools_sniper],[7,crate_items_high_value],[4,crate_backpacks_large]] call dynamic_crate;
[_bedny_skalisty2,[10,ai_wep_machine],[10,crate_tools_buildable],[15,crate_items_food],[2,crate_backpacks_large]] call dynamic_crate;
[_bedny_skalisty3,[10,ai_wep_assault],[10,crate_tools],[40,crate_items_buildables],[2,crate_backpacks_large]] call dynamic_crate;
sorry for posting here, but on epochforum i cant make posts in your thread (i have fresh account)
Epoch 1.0.5.1 - no infistar, DZAI, WAI 2.1.4
thx for reply
The text was updated successfully, but these errors were encountered: