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
AddBodyForce Cabinet Doors Script Problem
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#9
RE: AddBodyForce Cabinet Doors Script Problem

(06-13-2013, 02:30 PM)DeAngelo Wrote: This would be a bit roundabout, but you could try this: Make a new entity that is a move object, but is invisible. (You could just modify the blockbox and save it as a new entity)

Then place them in the level at the right angles so that when you move them (and move them rather fast but a short distance) they will "smack" the doors.

As I said, a bit roundabout but it should achieve what you want.
Actually that's an awesome idea.
I don't know if applying it here it's the best solution but it's great for more complex stuff. So i'll keep it in mind in case i ever need it. +rep DeAngelo.

Mazl,

I always use BodyImpulse and is working for me.
I just put the cabinet in my map, wrote this line and it opened one door as it should.


AddBodyImpulse( "cabinet_nice_1_Body_1", 5, 0, 5, "" );





(This post was last modified: 06-15-2013, 03:59 AM by Daemian.)
06-15-2013, 03:41 AM
Find


Messages In This Thread
RE: AddBodyForce Cabinet Doors Script Problem - by Daemian - 06-15-2013, 03:41 AM



Users browsing this thread: 1 Guest(s)