• Generate a spawnicon immediatly
    2 replies, posted
I am trying to create a spawnicon immediatly. So it can be used the very same frame it was created. I already tried creating the spawnicon panel and set a model there, but it didn't work well. I am using the following in the deploy/initialize functions of a weapon: [code] local icon = vgui.Create("SpawnIcon") icon:SetPos(0, 0) icon:SetModel(self.Owner:GetModel()) icon:Remove() [/code] Thanks in advance!
Panel/RebuildSpawnIcon and Panel/RebuildSpawnIconEx
It seems to work. Thank you, you have done me a great favor.
Sorry, you need to Log In to post a reply to this thread.