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
problem with scare script
zergling50 Offline
Member

Posts: 74
Threads: 9
Joined: Jul 2012
Reputation: 1
#21
RE: problem with scare script

(04-08-2013, 09:00 AM)junkfood2121 Wrote:
(04-08-2013, 02:20 AM)JustAnotherPlayer Wrote: You're not adding enough force! You need the force to be above 2000 to see the effects.
AddPropImpulse("mansion_6", 30000, 0, 0, "world");
And you need another perimeter!
AddPropForce("mansion_6", 30000, 0, 0, "world");

And remember, it depends whether you are in the Z or the X Axis!

Is that really true when it comes to AddPropImpulse?
I never use values above 20.0f and that is strong enough to make the door get thrown up very powerfully.

first off, I dont know what you meant by I need another paramater. Also, I don't believe 30000 is necessary because I can fling a door open with impulse using 20. It's just this door wont work for some reason.

(04-08-2013, 02:05 AM)noovra Wrote:
(04-07-2013, 09:42 PM)zergling50 Wrote: So I just went through again and managed to finally discover why it was still crashing, it was a problem with a completely different method, the fix you guys showed me with the entity sound thing worked. Only problem is the door is not flying open. Every part works except that. I set up two script areas next to the door so that I could in the game test what different impulses would do to the door and see if I could get it to work, but it wont work. You can see the door get shoved and hear an impact but its like its hooked up to a really strong rubber band because it only budges an extremely little bit and then shuts right back closed. I have tried extremely high values (in the 600's) and small values (in the 10's) but they all have the same effect. The door simply wont move. Does anyone have any idea whats going on?

In my view, it looks like, that the coordinates are wrong. Did you ever tried to change them?
Instead of:
AddPropImpulse("mansion_6", 20, 0, 0, "world"); ->
AddPropImpulse("mansion_6", 0.0f, 500.0f, 0.0f, "world");
or maybe try to place a " - " for the number of impulse...

I have another bit of code that uses it the exact same way
CODE: AddPropImpulse("mansion_3", 0, 0, -50, "world");
This works just fine. For some reason it wont work on this particular door though. Ive tried all three coordinates in both the negatives and positives. None worked.
(This post was last modified: 04-10-2013, 11:49 PM by zergling50.)
04-10-2013, 11:46 PM
Find


Messages In This Thread
problem with scare script - by zergling50 - 01-06-2013, 10:18 PM
RE: problem with scare script - by Rapture - 01-06-2013, 10:33 PM
RE: problem with scare script - by zergling50 - 01-08-2013, 01:34 AM
RE: problem with scare script - by Damascus - 01-07-2013, 03:10 AM
RE: problem with scare script - by Victor - 01-08-2013, 04:32 PM
RE: problem with scare script - by Damascus - 01-08-2013, 08:14 PM
RE: problem with scare script - by zergling50 - 04-06-2013, 08:16 PM
RE: problem with scare script - by Kreekakon - 04-06-2013, 08:29 PM
RE: problem with scare script - by zergling50 - 04-06-2013, 09:01 PM
RE: problem with scare script - by NaxEla - 04-07-2013, 12:58 AM
RE: problem with scare script - by Tiger - 04-07-2013, 01:56 AM
RE: problem with scare script - by NaxEla - 04-07-2013, 04:53 AM
RE: problem with scare script - by Tiger - 04-07-2013, 04:43 PM
RE: problem with scare script - by zergling50 - 04-07-2013, 08:37 PM
RE: problem with scare script - by zergling50 - 04-07-2013, 09:42 PM
RE: problem with scare script - by noovra - 04-08-2013, 02:05 AM
RE: problem with scare script - by Linus Ågren - 04-08-2013, 09:00 AM
RE: problem with scare script - by noovra - 04-08-2013, 01:03 PM
RE: problem with scare script - by zergling50 - 04-10-2013, 11:46 PM
RE: problem with scare script - by NaxEla - 04-11-2013, 12:36 AM
RE: problem with scare script - by zergling50 - 06-11-2013, 08:22 PM
RE: problem with scare script - by GrAVit - 06-12-2013, 08:16 AM
RE: problem with scare script - by Daemian - 06-12-2013, 12:19 PM
RE: problem with scare script - by zergling50 - 06-13-2013, 08:13 PM



Users browsing this thread: 1 Guest(s)