Jump to content
Sign in to follow this  
zukas3

Module: Show / Hide Objects after hiding still having collision with vehicles

Recommended Posts

Hello there, so I was working on a base that would have it's entrances opened when certain trigger is activated it would activate module which supposedly would "hide" the obstacles. So trigger is activated, obstacle fades out, infantry can pass it perfectly. But vehicles still have collision with invisible obstacle, do you have any idea how to fix it?

Sorry if I made it just too hard to understand, I will try to explain my best or maybe even make video on it if you need to ^_^

Share this post


Link to post
Share on other sites

Strange that they still have a physical presence unlike arma2.

Have you tried attaching them to something like a gamelogic, quite often this removes the collision detection.

If you have three objects named obj1 ect

ie {_x hideobject true; _x attahcto [logicname]} foreach [obj1,obj2,obj3];

It doesn't matter where you place gamelogoc.

Share this post


Link to post
Share on other sites

Hey, sorry for late response. Yeah it's attached to game logic. It's really weird, perhaps a bug.

Share this post


Link to post
Share on other sites
Maybe http://community.bistudio.com/wiki/disableCollisionWith could help you.

Also could you post here your results, as i was struggling with this as well.

Ended up setting desired position 3 times with sleep 1 delay.

That doesn't seem to work, It only removes collision between 2 selected vehicles, doesn't work for static objects :(

Share this post


Link to post
Share on other sites
Maybe you could change obstacles position.

I just tried with another module, I made it to make elevation -100 but it stayed in same place.

Share this post


Link to post
Share on other sites

Sink it below ground level by

_o enablesimulation false;

_o setPosATL[(getPosAtL _o) select 0, (getPosAtL _o) select 1,-20];

_o being the object you want to hide.

Edited by zapat

Share this post


Link to post
Share on other sites

Could some one please help with the show module function.

In the first stage of my mission you have to secure a captured convoy. When all the enemy are dead I want two VAS to appear at a preset place. I have managed to hide the ammo crates and got the trigger working that completes when all opfor are dead....but I can for the life of me get the ammo to appear when all the opfor are dead.

Share this post


Link to post
Share on other sites

Just preplace the crates on the map somewhere and setPos them when you need to move them.

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  

×