Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting static objects inactive/invisible?
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#8
RE: Setting static objects inactive/invisible?

I thought someone made a tutorial on this, but I cannot find it on the wiki, so I'll just post what to do here.

1. Go to redist/entities and make a folder called w/e you want. (My_Entities for example)
- Inside this folder make another folder. (Call it Decal01 for now)

1.5. Go to "redist/static_objects/decals/" and look for the .dae filename which corresponds to the decal you want.
- for example, if you wanted the "blood_pool_static" decal, you would select "blood_pool_static.dae"
- Copy this file to your Decal01 folder you made earlier.

2. Open Model editor, click 'Import .dae' and browse to "entities/My_Entities/DecalName/DecalName.dae

3. Click Shapes at the left, and create a shape covering the static
- object, this will be what the player collides with, so make sure it
- follows the shape of the mesh reasonably well. You can add a couple more
- shapes to make the collision area more defined, but try not to use too
- many!

4. Select all the shapes, and click 'Create Body' (it might be on the second tab)

5. You now have a body, change any parameters you want in the second tab,
- I'd suggest 0 mass for decals (Or any static object for that matter!)
- and choose a suitable material from the list.

6. Go to the last tab,
- click 'Su'->Attach. Click on the decal's mesh, and click done!
- There should be a line conecting the mesh to the body.

7. Go into Settings->UserDefinedVariables. Make sure the entity type is not staticProp,
- otherwise you will not be able to use SetEntityActive!
- (StaticProp is not the same as Object->Static),
- You can set your entity to Object as Type: Static, and it should still be affected by SetEntityActive.

8. Now you can click 'SaveAs' and give it a new name! Now you can open it in your Level editor.

Edit: I originally got step 7 wrong, I'm really sorry. I've now edited it so it's correct now! (Thanks Your Computer)

(This post was last modified: 04-17-2012, 07:43 PM by DRedshot.)
04-17-2012, 05:41 PM
Find


Messages In This Thread
RE: Setting static objects inactive/invisible? - by DRedshot - 04-17-2012, 05:41 PM



Users browsing this thread: 1 Guest(s)