jshock 513 Posted December 1, 2014 Yep that should work :). Share this post Link to post Share on other sites
Coolinator 10 Posted December 1, 2014 Yep that should work :). Thnx it works :) but i had problem with the parameers :( For example i put 1 for heli paremeter, when i go to preview it respawn 2 helicopters, and i put 2 for heli paremeter, it spawns 3 helicopter? then i tried putting it to 0 it respawn to none. For some reason it always add extra vehicle? do you know the problem or reason behind this? I also tried with tanks, ifrits and apcs. It does the same thing, it respawns an extra vehicle for each. ---------- Post added at 07:33 ---------- Previous post was at 07:01 ---------- nvm problem solved, im just gonna call it with different scripts for each type of vehicle :) Share this post Link to post Share on other sites
jshock 513 Posted December 1, 2014 Thnx it works :) but i had problem with the parameers :(For example i put 1 for heli paremeter, when i go to preview it respawn 2 helicopters, and i put 2 for heli paremeter, it spawns 3 helicopter? then i tried putting it to 0 it respawn to none. For some reason it always add extra vehicle? do you know the problem or reason behind this? I also tried with tanks, ifrits and apcs. It does the same thing, it respawns an extra vehicle for each. ---------- Post added at 07:33 ---------- Previous post was at 07:01 ---------- nvm problem solved, im just gonna call it with different scripts for each type of vehicle :) Actually, yea I believe it's my bad on the for loops, change all the 0's to 1's: i.e. //instead of for "_a" from 0 to blah //do for "_a" from 1 to blah And do that for each of the loops, it's just one of those mistakes that's easily looked over if your not careful :p. Share this post Link to post Share on other sites
Coolinator 10 Posted December 1, 2014 ahh i see,thank you so much Jshock :)!!! ---------- Post added at 08:56 ---------- Previous post was at 07:45 ---------- I forgot to ask you this, how do i find a group class name? for example, sniper team. what is the group class name for sniper team? How do i find group class names for different groups units? Share this post Link to post Share on other sites
kbbw123 115 Posted December 1, 2014 ahh i see,thank you so much Jshock :)!!!---------- Post added at 08:56 ---------- Previous post was at 07:45 ---------- I forgot to ask you this, how do i find a group class name? for example, sniper team. what is the group class name for sniper team? How do i find group class names for different groups units? I think its acctually in the config viewer ingame under cfggroups if my memory is correct Share this post Link to post Share on other sites
Coolinator 10 Posted December 1, 2014 I think its acctually in the config viewer ingame under cfggroups if my memory is correct Thanks a bunch! :) Share this post Link to post Share on other sites
jshock 513 Posted December 1, 2014 I forgot to ask you this, how do i find a group class name? for example, sniper team. what is the group class name for sniper team? How do i find group class names for different groups units? Or if your lazy like me and don't like to pull up the game: https://community.bistudio.com/wiki/CfgGroups#ArmA_3 Share this post Link to post Share on other sites
Coolinator 10 Posted December 1, 2014 (edited) Or if your lazy like me and don't like to pull up the game: https://community.bistudio.com/wiki/CfgGroups#ArmA_3 Ahh thanks, it's much easier! :) ---------- Post added at 18:55 ---------- Previous post was at 18:05 ---------- I found a problem. The vehicles spawn but they dont go to the trigger? they just stay at their current position, and won't move to the trigger :( Do vehicles have a different coding for attacking? i made separate scripts for each kind of vehicle ambush. For example: i made ambushheli.sqf _area = (_this select 0);_distance = (_this select 1);_center = createCenter EAST;_pos = [(getPos _area), _distance, random(359)] call BIS_fnc_relPos; _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle; [_veh, (getPos _area)] call BIS_fnc_taskAttack; Did i do something wrong? Edited December 1, 2014 by Coolinator Share this post Link to post Share on other sites
jshock 513 Posted December 1, 2014 Nope me again :), my fault for not going back and refreshing myself on the taskAttack function, change: [_veh, (getPos _area)] call BIS_fnc_taskAttack; //to [(group _veh), (getPos _area)] call BIS_fnc_taskAttack; Share this post Link to post Share on other sites
Coolinator 10 Posted December 1, 2014 Nope me again :), my fault for not going back and refreshing myself on the taskAttack function, change: [_veh, (getPos _area)] call BIS_fnc_taskAttack; //to [(group _veh), (getPos _area)] call BIS_fnc_taskAttack; Ahh no problem, Everyone is not always perfect :) This shows that you need to be really precise when it comes to scripting :) Thank you so much!!! :) WAit do i change this also? _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle to this? group _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle ---------- Post added at 19:31 ---------- Previous post was at 19:10 ---------- I tried changeing it to this ambushheli.sqf _area = (_this select 0); _distance = (_this select 1); _center = createCenter EAST; _pos = [(getPos _area), _distance, random(359)] call BIS_fnc_relPos; _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle; [(group _veh), (getPos _area)] call BIS_fnc_taskAttack; Heli still didnt move to the trigger :/ Share this post Link to post Share on other sites
jshock 513 Posted December 1, 2014 WAit do i change this also? _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle to this? group _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle No, that would not give you a desired effect. I tried changeing it to thisambushheli.sqf _area = (_this select 0); _distance = (_this select 1); _center = createCenter EAST; _pos = [(getPos _area), _distance, random(359)] call BIS_fnc_relPos; _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle; [(group _veh), (getPos _area)] call BIS_fnc_taskAttack; Heli still didnt move to the trigger :/ Try this instead: _area = (_this select 0); _distance = (_this select 1); _center = createCenter EAST; _pos = [(getPos _area), _distance, random(359)] call BIS_fnc_relPos; _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle; [(_veh select 2), (getPos _area)] call BIS_fnc_taskAttack; If that doesn't work we may have to resort to using the createVehicle command. Share this post Link to post Share on other sites
Coolinator 10 Posted December 1, 2014 No, that would not give you a desired effect.Try this instead: _area = (_this select 0); _distance = (_this select 1); _center = createCenter EAST; _pos = [(getPos _area), _distance, random(359)] call BIS_fnc_relPos; _veh = [_pos,0,"O_Heli_Attack_02_black_F",_center] call BIS_fnc_spawnVehicle; [(_veh select 2), (getPos _area)] call BIS_fnc_taskAttack; If that doesn't work we may have to resort to using the createVehicle command. IT works now!!!!!!!!!!!!!! omg!!!!!!!!!! Thanks so much bro!!!! i really appreciate it :) Cheers!!! Share this post Link to post Share on other sites