Jump to content
Sign in to follow this  
finguide

Attaching invisible but playable vehicle into another vehicle

Recommended Posts

Hi!

I'm trying to attach another vehicle into a vehicle. I want to attached vehicle to be invisible but still playable.

I used these scripts:

in vehicle 2 init:

veh1 attachto[veh2,[0,-1,0]];

in trigger:

veh1 setvectorUp[0,1,0.4];deleteCollection veh1

The problem is that I can't get in the attached vehicle if the

deleteCollection veh1

is in the trigger's on activation box, but if I remove it, the vehicle is visible.

Thanks in advance,

finguide

Share this post


Link to post
Share on other sites

I tried also that but it didn't work either, I couldn't enter the vehicle anymore.

Share this post


Link to post
Share on other sites

If your attaching a gun to a vehicle and the gun is invisible then you would do it like this.

in one of the objects inits put

veh1 attachto[veh2,[0,-1,0]];

veh1 setvectorUp[0,1,0.4];

veh1 hideobject true;

veh2 addaction ["getin gun","getin.sqf",veh1];

then save the following script as getin.sqf

_unit = _this select 1;

_veh = _this select 3;

_unit moveingunner _veh;

Invisible objects are not detected so you need to place an action on an object that can be seen

Share this post


Link to post
Share on other sites

Iirc, if you set a static to be invisible and get in after that, it's gonna be visible again.

Share this post


Link to post
Share on other sites
Iirc, if you set a static to be invisible and get in after that, it's gonna be visible again.

Stays invisible for me and the unit getting becomes invisible, I can't speak for MP though.

Share this post


Link to post
Share on other sites
Stays invisible for me and the unit getting becomes invisible, I can't speak for MP though.

Justed tested again, i was confused, it's the other way around. If you set somebody to be invisible and to get in a vehicle, they get visible again.

Share this post


Link to post
Share on other sites

Thanks a lot for your answers! The F2k sel's script works well for me, unit doesn't become visible. What I created, was chopper with searchlight attached in its nose. It's kinda fake, but works anyways. Now I can use turnable searchlight for night missions!

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  

×