DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: how to make floor break when u go to a certain area
AddPlayerBodyForce(-5000.0f, 0.0f, 0.0f, true);
I guess the bodyforce, could depend on where the closet is pointing at..?
Try like this?
Quote: AddPlayerBodyForce(-5000.0f, 0.0f, 0.0f, true);
AddPlayerBodyForce(0, -5000.0f, 0.0f, true);
AddPlayerBodyForce(0, 0.0f, -5000.0f, true);
(This post was last modified: 07-08-2014, 09:35 AM by DnALANGE.)
|
|
07-08-2014, 09:34 AM |
|
Mudbill
Muderator
Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation:
179
|
RE: how to make floor break when u go to a certain area
(07-08-2014, 09:34 AM)DnALANGE Wrote: AddPlayerBodyForce(-5000.0f, 0.0f, 0.0f, true);
I guess the bodyforce, could depend on where the closet is pointing at..?
Try like this?
Quote: AddPlayerBodyForce(-5000.0f, 0.0f, 0.0f, true);
AddPlayerBodyForce(0, -5000.0f, 0.0f, true);
AddPlayerBodyForce(0, 0.0f, -5000.0f, true);
Well, at least we don't want the player to fly upwards no matter what direction, eh? Referring to the Y force. The last boolean says to use local co-ords, so only setting that to false would make this difference. It could be that the force to push you back lies on the local Z axis, but I would find that sorta strange.
(This post was last modified: 07-08-2014, 03:54 PM by Mudbill.)
|
|
07-08-2014, 03:53 PM |
|
victorkim890(KimmyChimmy)
Senior Member
Posts: 316
Threads: 1
Joined: Jun 2014
Reputation:
1
|
RE: how to make floor break when u go to a certain area
how do u touch something like a rock and it says something like this is a rock. i alrdy said this but whenever i touch it, i can pick it but i want it to stay in one spot and you can only touch it but not pick it up.
|
|
07-12-2014, 02:29 AM |
|
Romulator
Not Tech Support ;-)
Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation:
195
|
RE: how to make floor break when u go to a certain area
What you want to do here is make the rock a static object and place a Script Area around it.
Click on your rock in the level editor, go to the entity tab on the right and tick "StaticPhysics".
Then place a Script area around it.
Using Harry Potter's Code:
(07-03-2014, 06:14 AM)Harry Potter Wrote: HPS file.
But all you need to really do is change the EntityToInteract in the SetEntityPlayerInteractCallback to the name of your scriptarea. In my case above, "rockmessage".
Discord: Romulator#0001
(This post was last modified: 07-12-2014, 02:41 AM by Romulator.)
|
|
07-12-2014, 02:41 AM |
|
victorkim890(KimmyChimmy)
Senior Member
Posts: 316
Threads: 1
Joined: Jun 2014
Reputation:
1
|
RE: how to make floor break when u go to a certain area
wow i forgot theres a check box tat u can check to make it stay still
i found out tat u have to do -40,000 in the z axis and 25,000 in the y axis. finally
|
|
07-12-2014, 08:02 AM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: how to make floor break when u go to a certain area
|
|
07-12-2014, 11:32 AM |
|
Romulator
Not Tech Support ;-)
Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation:
195
|
RE: how to make floor break when u go to a certain area
Discord: Romulator#0001
|
|
07-12-2014, 11:52 AM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: how to make floor break when u go to a certain area
Still the same thread name TongueTongueTongue
( there is not even anything about the whole thread anymore just other stuff )
(This post was last modified: 07-12-2014, 01:16 PM by DnALANGE.)
|
|
07-12-2014, 01:15 PM |
|
Romulator
Not Tech Support ;-)
Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation:
195
|
RE: how to make floor break when u go to a certain area
And like I said, it is better than creating 20 threads about different issues
Discord: Romulator#0001
|
|
07-12-2014, 01:41 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: how to make floor break when u go to a certain area
Still the same thread name TongueTongueTongue
( there is not even anything about the whole thread anymore just other stuff )
Just change the name i would say
Then if there is a certain problem, certain people who know tat problem could help??
(This post was last modified: 07-12-2014, 03:25 PM by DnALANGE.)
|
|
07-12-2014, 03:25 PM |
|
|