Jump to content
Sign in to follow this  
_qor

attachTo gets ineffective with hideObject

Recommended Posts

Hey there,

I am just trying to freeze a vehicle by attaching it to a SkeetDisc. Although the SkeetDisc is very small, I use hideObject to really hide it.

But doing so, the attachTo command seems to get ineffective and the vehicle starts to drive.

I tested this by triggering the code viy radio, same thing!

Can anybody confirm and add this to the wiki (not registered)?

Problem is that I am currently uncertain about whether attachTo freezes a vehicle at all.

Curiously in some cases it seemed to work, while it didnt work in other cases.

Edited by _qoR

Share this post


Link to post
Share on other sites

Try this:

[nil, SkeetDisc, "per", rHideObject, true] call RE;

SkeetDisc attachTo [YourCAR,[0,0,0]; //Change the 0,0,0 for your desired.

Share this post


Link to post
Share on other sites

Thanks!

But so far I use stop and disableAI "MOVE". This is somehow unreliable but so far it seems to work.

All the time I have to find out workarounds ._.

Share this post


Link to post
Share on other sites

Why does it have to be invisible,you can attach an object to a flagpole the flag pole could be anywhere on the map.

myobject attachto [mypole] it will lock the object in it's current position relative to the pole.

You could also use the setobjecttexture command to make it invisible if it's a must.

You can also use a gamelogic which is invisible myobject attachto [mylogic,[0,0,0]]

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  

×