Jump to content

Weird


Alienhead
 Share

Recommended Posts

The web on the left is placed into the scene via the editor.  Loads up fine, looks like it's suppose to.

The web on the right is placed into the scene with code: and it turns out as you see... weird.  Nothing else is set.  Same model, same material.  What's causing it to load two different ways?

 

            local web = Model::Load("models/webs/1.mdl")
            web:SetPosition(entity:GetPosition(true))

 

wtf.thumb.jpg.db9936e7ac13deeec4f215fda5cc4542.jpg

I'm building a random procedural dungeon and I need to place the webs by code.

  • Confused 1

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

Heh I couldn't figure it out either.. never happen before.  I'm on a 7day game jam so haven't got time to mess with it no more.  I fudge it,  I just stuck abunch of webs all over the room then randomly hid some on loadup. The rooms and map got to be random each load up.. so that works for now. :)

 

 

I'm only happy when I'm coding, I'm only coding when I'm happy.

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...