Page Menu
Home
Feedback Tracker
Search
Configure Global Search
Log In
Files
F5952894
test.sqf
Bl4ck0ut
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Author
Bl4ck0ut
Created
Jul 2 2025, 10:08 PM
Size
936 B
Mime Type
text/plain
Engine
blob
Format
Raw Data
Handle
3335589
Attached To
T193072: VTOL aircraft spawned via script will not lift off from a ship object.
test.sqf
View Options
private _trHli = "O_T_VTOL_02_infantry_dynamicLoadout_F" createvehicle (position seaTranspHeliSpawn1);
// seaTranspHeliSpawn1 is just a simple object on the ship deck that has simulations and damage disabled, and is invisible.
_trHli setPosASL (getPosASL seaTranspHeliSpawn1);
_trHli setDir (getDir seaTranspHeliSpawn1);
private _trHli_Team = createVehicleCrew _trHli;
sleep 0.1;
_trHli engineOn true;
{
addSwitchableUnit _x;
_x setSkill 0.80;
} forEach units _trHli_Team;
// makes pilot group switchable for testing purposes
private _randLandingPos = [[18801.3,16627.4,0.000286102], 800, 1000, 16, 0, 0.28, 0, [], []] call BIS_fnc_findSafePos;
// this chooses a random position near Rodopoli on Altis
// in my actual code I also add an invisible helipad at the random position, but this is just for demo purposes
private _wp1 = _trHli_Team addWaypoint [_randLandingPos, 1];
_wp1 setWaypointType "TR UNLOAD";
Event Timeline
Log In to Comment