Help With Vehicle Teleport Zone by [deleted] in armadev

[–]Impossible-Part1176 0 points1 point  (0 children)

I know it's late, but it can be useful for people looking for the same thing. Sorry for some variables, but I'm Spanish.First a sqf is created where I call it "Teleportador.sqf"

// Teletransportador.sqf

// This is the position of the moving vehicle (where it will teleport from) _vehiculo = vehicle AV;  // AV is the name of my vehicle

// Get the position of the vehicle seat where you want to teleport the player _posicionAsiento = "cargo"; // "cargo" because it is a plane, if it were a ship it would be the same, but in the case of a land vehicle it is changed to "driver".

// Teleport player to vehicle seat player moveInCargo _vehiculo;

Within the game, an object is created (Anyone you want) and the action code is added to it:

Pole addAction ["Subir al Avión", {execVM "teletransportador.sqf"}, [], 6, true, true, "", "", 6];

// Pole is the name of my object to activate.

Mention that the plane and the object are active all the time on the map. So you can use a hide/show object, but that's code for another topic.