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
Script Help Teleporting-Naked-Guy Help
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#21
RE: Teleporting-Naked-Guy Help

(07-05-2014, 12:53 PM)Harry Potter Wrote:
(07-05-2014, 10:25 AM)MsHannerBananer Wrote:
PHP Code: (Select All)
AddBodyForce("cabinet1_rightDoor"00, -900"world");
AddBodyForce("cabinet1_leftDoor"00, -900"world"); 

So, if you had a cabinet named "cabinet1" you add "_rightdoor" or "_leftdoor". Use both to open both doors, or just one.

That wouldn't work. If you open the model in the ModelEditor, you'll see that the main body and doors are seperate and you only specify the body of the doors, not the names of the doors.

So unless the Body your Right door is named rightDoor and Body of the Left door named leftDoor, your method won't work.
PHP Code: (Select All)
AddBodyForce("cabinet1_Body_1"00, -900"world");
AddBodyForce("cabinet1_Body_2"00, -900"world"); 

That would work.

If you had read my post correctly, you would have noticed I was talking about the METAL cabinet. You know, cabinet_metal.ent? LOL

The metal cabinet has two bodies for the doors, labelled, as afore mentioned, "rightDoor" and "leftDoor". The use of "_left/rightDoor" attached to the name of your cabinet in your script, directly references the bodies on the cabinet, therefore giving you creative power to blow them open as you see fit.

So for the metal cabinet, yes, this method does work.

(This post was last modified: 07-05-2014, 08:19 PM by MsHannerBananer.)
07-05-2014, 08:13 PM
Find


Messages In This Thread
Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 12:04 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 12:30 AM
RE: Teleporting-Naked-Guy Help - by The chaser - 07-05-2014, 12:33 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 12:49 AM
RE: Teleporting-Naked-Guy Help - by MrBehemoth - 07-05-2014, 12:55 AM
RE: Teleporting-Naked-Guy Help - by The chaser - 07-05-2014, 12:59 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 01:05 AM
RE: Teleporting-Naked-Guy Help - by The chaser - 07-05-2014, 01:13 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 01:35 AM
RE: Teleporting-Naked-Guy Help - by The chaser - 07-05-2014, 09:55 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 09:59 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 10:43 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-05-2014, 10:53 AM
RE: Teleporting-Naked-Guy Help - by MsHannerBananer - 07-05-2014, 08:13 PM
RE: Teleporting-Naked-Guy Help - by The chaser - 07-05-2014, 10:44 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-08-2014, 12:48 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-08-2014, 03:38 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-08-2014, 05:23 AM
RE: Teleporting-Naked-Guy Help - by Mudbill - 07-08-2014, 05:25 AM
RE: Teleporting-Naked-Guy Help - by CQBgamer - 07-08-2014, 05:35 AM



Users browsing this thread: 1 Guest(s)