Jump to content
gitrinec

Detach command delay

Recommended Posts

How long does the detach command take to complete, I'm noticing it tends to not be immediate?

Share this post


Link to post
Share on other sites

The command immediately detaches the object. The object sometimes gets stuck in the air though (even PhysX™️) objects.

Share this post


Link to post
Share on other sites
20 minutes ago, 7erra said:

The command immediately detaches the object. The object sometimes gets stuck in the air though (even PhysX™️) objects.

Ya, I had one of the ai units hovering in the air , but that one was unneeded , so I just removed the attachto for it, but I noticed that even after detaching one unit from another, if I have a different unit setdir towards the supposedly detached unit, the unit looks at the previously attached unit and not the correct unit. 

Share this post


Link to post
Share on other sites

You can give them a gentle push after detaching if you want gravity effect  more immediate using setVelocityModelSpace.

 

_unit setVelocityModelSpace [0,.5,-.5];  // a slight push forward and down

 

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

×