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
CQBgamer Offline
Junior Member

Posts: 40
Threads: 8
Joined: Jul 2014
Reputation: 0
#16
RE: Teleporting-Naked-Guy Help

(07-05-2014, 10:25 AM)MsHannerBananer Wrote: As for having the cabinet doors open... I know that the metal cabinets have door names, but I'm sure it's the same for the fancy wood cabinet as well. You'd need to add a PropForce to each individual door, but this is easy.

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.

The values (0, 0, -900) are the X, Y, and Z axis'. So you would adjust this to what axis you want the doors to swing open on and also adjust for the positive and negative values. You can play around a bit to see what gives you the best results. I also believe that the higher the value, the harsher the doors swing open, so -900 is naked guy jump scare value, haha.

EDIT: I assume "Harry Potter's" suggestion might work, never tried it myself though so I wouldn't know. Try either, and chose what's easiest, haha. Big Grin

I dont have an issue getting the doors open, because the Addforce script on the corpse still pushes his feet foward thus opening the doors, but since the model spawns in T-Posed there is no way I can position him inside the cabinets that his hands wont be touching the sides. If there is no other way to fix that would it just be possible to disable collisions between the corpse and cabinet and then just use the code you provided to simulate him hitting the doors? If so what code would I use to disable the collision between the corpse and cabinet?

[Image: 15420.png]
07-05-2014, 10:43 AM
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 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)