Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: aq
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2019-01-02 09:52        
     
First thing first i'm noob with scripting and i'm learning step by step but searching with google i didn't find a solution so here i am,i want to teleport a group that I spawned using the spawngroup function,into e vehicle that is on the map.
So first i setup the spawn and define the variable for the spawning group _aiUsArmor = [getPos spawnUS,WEST, ["CUP_B_USMC_Crew","CUP_B_USMC_Crew","CUP_B_USMC_Crew"],[],[],[],[],[],0] call BIS_fnc_spawnGroup; then i wrote an array _UsTank = ["TuS1","TuS2","TuS3","TuS4","TuS5","TuS6","TuS7"] call BIS_fnc_selectRandom; from this array i want a random pick up vehicle in which the crew group "_aiUsArmor " will be teleported and then they will us it with another array this time picking random waypoint _mrk = ["mrk1","mrk2","mrk3","mrk4"] call BIS_fnc_selectRandom;
wp =_aiUsArmor addWaypoint [(getMarkerPos _mrk),0],so what's wrong or missing???
here the entire script...


_aiUsArmor = [getPos spawnUS,WEST, ["CUP_B_USMC_Crew","CUP_B_USMC_Crew","CUP_B_USMC_Crew"],[],[],[],[],[],0] call BIS_fnc_spawnGroup;

_UsTank = ["TuS1","TuS2","TuS3","TuS4","TuS5","TuS6","TuS7"] call BIS_fnc_selectRandom;

_mrk = ["mrk1","mrk2","mrk3","mrk4"] call BIS_fnc_selectRandom;

wp =_aiUsArmor addWaypoint [(getMarkerPos _mrk),0]

This post was edited by Foxhound (2020-05-11 16:20, 22 days ago)