Jump to content

xray outliner for tps character


holschuh
 Share

Recommended Posts

If you want a quick solution for displaying charcters behind walls just raycast them from the camera

 

something like this:. (will make it red and transparent and seen thorugh walls)

 


if camerapick then

material:SetDepthTestMode(true)

material:SetBlendMode(Blend.Solid)

material:SetColor(1,1,1,1)

material:SetSortMode(false)

else

material:SetDepthTestMode(false)

material:SetBlendMode(Blend.Alpha)

material:SetColor(1,0,0,0.5)

material:SetSortMode(true)

end

  • Upvote 3

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...