Jump to content
Sign in to follow this  
Scud

Hidden Selection Problemo

Recommended Posts

Just want to make a certain part of the model dissapear in the game at a given point. Simple hmmm

I know the numbered selection is right coz if I start with it hidden it works (its hidden).

but I need it visible at the begining then using

_plane setobjecttexture [44,""]

it should dissapear - but it doesn't. crazy_o.gif

Share this post


Link to post
Share on other sites

Ok have worked it out.

It seems I had to start with the hidden selection, texture it at very start and then hide it again later on.

Which was a hassel being a multi part and multi textured selection.

Oh well $#it happens.

Share this post


Link to post
Share on other sites

what exactly doesn't work in MP?

Share this post


Link to post
Share on other sites

if you have a init eventhandler that does the trick it will only run on server.

Share this post


Link to post
Share on other sites

Use time condition to check if a game has been loaded, otherwise your texture will disappear. I would recommend having only one script use this condition otherwise with a lot of units your CPU will get bogged down..

In the plane's init script add it to a list, eg PlaneList, and in the player execed (make sure it is only executed once) script have the time condition, then {_x setobjecttexture blahblahblah} forEach PlaneList.

In multiplayer the init eventhandler should handle everything, provided you do not exit it with a "local _plane" thing.. SetObjectTexture is local only and every machine must execute the script (or at least that part of it) for the given plane even if it is not local to them..

Share this post


Link to post
Share on other sites

I don't play MP but I am sure I read that this problem was fixed.

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  

×