I want to know if its possible to make an AI Paradrop. Like spawn one chopper at coordinates XYZ1, make some AI. Let those AI get in the chopper. Fly to position XYZ2 and drop off AI there.
Me would be happy if i would have such piece of code inside an SQF function to call it from an server sides mission script which we already have working (We modified the one from bit)
We have two lines of code which will wait if a player is near of 10m from a lootbox inside one of the missions
// Waits until player gets near the _crate to end mission
waitUntil{{isPlayer _x && _x distance _crate < 10} count playableunits > 0};
What i want to achieve is to extend it so, that there is a second "eventHandler" which will spawn those paradrop at the given coordinates.:
// Coordinates are saved by
_coords = [mapCenter,300,mapRange,30,0,10,0] call BIS_fnc_findSafePos;
_conditionMet = distance _crate < 5; // Need some magic from your guys here
_conditionMet = {
// Need More SQF magic from your guys here inside function.sqf
// spawn paradrop[_coords] "mightyParaDropfunction.sqf"
};
From BLCKEagls AI Mission script there are few examples on how to spawn AI.
Question
Dadalusi
Hey there!
I want to know if its possible to make an AI Paradrop. Like spawn one chopper at coordinates XYZ1, make some AI. Let those AI get in the chopper. Fly to position XYZ2 and drop off AI there.
Me would be happy if i would have such piece of code inside an SQF function to call it from an server sides mission script which we already have working (We modified the one from bit)
We have two lines of code which will wait if a player is near of 10m from a lootbox inside one of the missions
What i want to achieve is to extend it so, that there is a second "eventHandler" which will spawn those paradrop at the given coordinates.:
From BLCKEagls AI Mission script there are few examples on how to spawn AI.
BTW. We modified the marker in debug/addmarker*.sqf like so:
To have a single black dot in the mission centre plus mission text and colored the mission "green" to be a green/an easy mission.
Also we added few variables to spawnVehicle.sqf to maintain a different vehicle list per mission. modified like so:
Additionally i did some magic to init.sqf from the mission system to have random loot
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now