Jump to content

Recommended Posts

I've already seen that, but I still don't understand it doesn't exactly come with instructions. Again i'm not trying to make some separate icon, just a custom one that my character uses. I'm still very new to modding and such, I just need a little guidance.

The important parts:

In modmain.lua:

--Load AssetsAssets = {	Asset("IMAGE", "images/youricon.tex"),	Asset("ATLAS", "images/youricon.xml"),}--Add the new atlasAddMinimapAtlas("images/youricon.xml")
In your prefab's fn function:

inst.MiniMapEntity:SetIcon("youricon.tex")
Edited by squeek

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...