Jump to content
Sign in to follow this  
eagledude4

Attaching objects to ID's

Recommended Posts

wall1 = (getpos player nearestobject 30766);
fence1 attachTo [wall1,[0,0,1]]; 

crashes my game. I would much prefer a function to change an object's mass, but I don't think such a function exists.

Share this post


Link to post
Share on other sites

getpos is not needed here:

wall1 = (player nearestobject 30766);
fence1 attachTo [wall1,[0,0,1]];

Share this post


Link to post
Share on other sites

Using a position and not an object may have caused arma to keep searching for the nearestObject (nearestObject/nearestObjects are some of the most performance un-friendly commands in arma), so that may have crashed your game.

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  

×