Jump to content
Sign in to follow this  
Smoot178

Freezing an object in place

Recommended Posts

An have vigorously went through the comref and I cannot find a freeze command.

I am simply trying to hold a vehicle in place from being moved/pushed out of where it is.

Share this post


Link to post
Share on other sites
Attach it to a stationary object with attachTo.

Tried that already, it doesn't actually work. I've tried that using a sandbag wall as the anchor.

Edit: And multiple other items.

Edited by Smoot178

Share this post


Link to post
Share on other sites

It works on an helipad for example.

Drop a heli invisible called 'holder' down and put this in your vehicle's init:

this attachTo [holder,[0,0,2.5]];

Problem with this though it while it moves it'll rubberband back into position, then at least for a HMMWV, glitch and start bouncing.

Best to just lock the vehicle if you don't want people getting in it.

Share this post


Link to post
Share on other sites
It works on an helipad for example.

Drop a heli invisible called 'holder' down and put this in your vehicle's init:

this attachTo [holder,[0,0,2.5]];

Problem with this though it while it moves it'll rubberband back into position, then at least for a HMMWV, glitch and start bouncing.

Best to just lock the vehicle if you don't want people getting in it.

That works but like you said it bounces around.

And I am simply trying to make it static. I have already locked it :D

Share this post


Link to post
Share on other sites

Just put a trigger around it by 1m that kills anything that comes close. ;)

Share this post


Link to post
Share on other sites
Just put a trigger around it by 1m that kills anything that comes close. ;)

Thats not what I am trying to do.

It is a C130 in an airfield that I do not want pushed around, I dont care if anyone gets close.

Share this post


Link to post
Share on other sites

In trying to fix something else I found a nearly perfect fix for this issue.

Simply put this enableSimulation false; in the plane's init field. That sucker won't budge. Ram into it, shoot it, nuke it... it's not gonna bat an eyelash at you.

The draw back two fold. One, you cannot interact at all with it, no getting in or anything and two, if someone say, drives a MTVR into it, there's a high chance you'll get completely stuck under it. :) But the C-130 won't move!

Untested in MP, but in the Editor it worked how you imagine it.

Share this post


Link to post
Share on other sites

What if one wanted to lock a vehicle with a player already in it for a short amount of time? I'm hoping to lock a vehicle with a player in it...kinda like a drag race starting line. I'd like the player to be able to rev the engine still, but have the vehicle help in place somehow.

The invisible h worked like described, but things bounce everywhere.

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  

×