Jump to content
Sign in to follow this  
splatsh

Get position under one object or attachTo

Recommended Posts

This code will spawn one MtvrRefuel on my transporthelo in air:

_spawntype = [position transporthelo, 0, "MtvrRefuel", WEST] call bis_fnc_spawnvehicle;

1) How to do if I want the MtvrRefuel to spawn 5 meter under the transporthelo?

Can my transporthelo fly with this MtvrRefuel attached with attachTo command?

If yes then:

2) How to attach this MtvrRefuel to this transporthelo, so its attached like 5 meter under the transporthelo with code?

3) How to release this MtvrRefuel from transporthelo with code?

Share this post


Link to post
Share on other sites

I would spawn or have it placed on the ground in a safe place then use the attachto command to place it in the aircraft.

To attach the truck to the heli

truckname attachto [heliname,[0,0,-5]]

A very simple way to release the truck would be to use a trigger set to radio and in the on act box put detach truckname

A better way would be to use the addaction command but this would take a little more effort and I'm a bit rusty.

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  

×