Jump to content
Kingsley1997

drawIcon3D breaks after respawn

Recommended Posts

When the player character respawns in a multiplayer game, drawIcon3D breaks. drawLine3D works however and when I log the array of data for drawIcon3D, it's all correct.

 

Note that prior to respawning, there is a camera object that lets the player move around like in Zeus for example. When this camera object is created, both the onFrame drawing stuff is created and a killed event handler is created which will destroy the camera and remove the onFrame handlers. After respawn, if you open up the interface again, the camera is created as expected as well as the onFrame stuff - however only drawLine3D in that handler works, drawIcon3D does not.

 

By "drawIcon3D not working" I mean I cannot see it (and yes the colour has the correct alpha value, and yes the position is correct).

 

Anyone know why this is happening?

Share this post


Link to post
Share on other sites

If I alt-tab from the game, wait 5 minutes, tab back into the game and re-open the camera/drawing handlers it works.

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

×