Jump to content
Sign in to follow this  
fighterman

transport arma 2

Recommended Posts

hi i was wondering if you could change the helicopter that picks you up when using the som module

Share this post


Link to post
Share on other sites

SOM setVariable ["TSS_vehicle_custom", h2];

Where h2 is the pre-placed helicopter of your choice and SOM is the SOM module.

Share this post


Link to post
Share on other sites

You can take a look at my old SOM Transport demo for how to do it.

This in your init.sqf:

// Initilize the system.
waitUntil {!isnil {player getVariable "mainScope"}};
SOM_mainScope = player getVariable "mainScope";

// Put this in the init field of your SOM module to prevent any random things from happening, only what we declare above will be available.
// this setVariable ["settings", [[], true, nil, nil, false]];

// Grant the player access to Transport.
[["transport"], player] call BIS_SOM_addSupportRequestFunc;

// Set Variables for the SOM module, named SOM in this case.
SOM setVariable ["TSS_vehicle_custom", t1];  // [b]t1 is the preplaced unit that will be used for transport.[/b]  Comment this line out to use default Huey.
SOM setVariable ["TSS_allowed", ["pickup", "unload"]];  // Commands allowed by the transport vehicle.
SOM setVariable ["TSS_plannedLZ", [0,0,0]];  // Defaut landing zone, will be set via map click after pickup.

// Transport vehicle settings.
t1 setVariable ["supPool", [p1], TRUE]; // p1 is the unit that can use this.
t1 setVariable ["supPhase", 0, TRUE];  // Default variable for what phase of transport it's on.
t1 setVariable ["onMission", objNull, TRUE];  // Default variable for it it's busy or not.
t1 setVariable ["stuck", FALSE, TRUE]; // Default variable for if it's stuck or not

Share this post


Link to post
Share on other sites

just to follow on from this, Is it possible to get it repeating?

Im trying to put together a longish mission/campaign on Chernarus, and a reliable transport solution is important. i have been using your script above, what i find though is when the heli is shot down or crashes secops gets stuck on 'transport (active)' and just tells me my helo is destroyed.

So even if i can respawn a helicopter with the same name and a crew secops ignores it

Share this post


Link to post
Share on other sites

Might have to execute this line again?

SOM setVariable ["TSS_vehicle_custom", t1];

Share this post


Link to post
Share on other sites

I actually put the whole code minus the comments in the init of the trigger that calls my respawn, and on respawn you do get the new support transport option as well as 'transport (active)' in the line below.. the first (new) one does not work and disappears after 2 clicks

this is what ive done,

On mission start i have a pillow named t1 and put this in its init - 't1 setDamage 1' i then have a trigger with !Alive t1 that spawns my heli and crew, this is spawned before BIS_SOM_addSupportRequestFunc; so that its the exact same heli and crew when first one is destroyed.

Ive destroyed it multiple ways, even destroyed it when its doing nothing, i.e. just sitting there, even with that the comm will still give the message 'transport active'..

after 3 nights of trying stuff I dont think it can work... tbh it was kinda fun trying?

Edited by Katipo66

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×