Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Car falling script?

Author
Message
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 18th Jul 2011 07:50
So in my city scene i have a car perched up on a building. Kind of slanted downwards and what i want it to do is once i step under it i want it to tilt so it is up and down and then fall on me. I also want to know if you can make it so i can't move when this is happening.

If this is possible, please someone help me out? There may be a reward in it if you want it? Thanks!

-Josh
Website is under construction
System Specs: AMD Phenom x3 2.2GHz, 4GB DDR2 RAM, 1TB HD, HD Radeon 5770 1GB, 22in Acer Monitor
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 18th Jul 2011 18:35 Edited at: 18th Jul 2011 18:56
The easiest thing would be to have it animated in the model then scripted.

Animate the car with the rocking motion, then add the falling animation and destroy animation.
Then script it so that when you trigger the car it goes thru the rocking part a few times then calls the falling animation, when it reaches the end of the falling animation have it stop on the last frame of the fallen part.

Easy, that is unless you do not have a model program.
Falling by script should not be so hard, but making it rock back and forth without that custom animation could be impossible as the is no action to rotate the model on that axis in script.

You can email me the details if you would like. height of the building where it is going to be, andwhat position you want it ove the edge of the building, and what position and condition you want it in when it hits the ground.

This could be a cool effect.


The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 18th Jul 2011 19:04 Edited at: 18th Jul 2011 19:11
@Exu Corp:
The way you describe the action, its much better to do a cutscene.

- If you just script it, there is no garantuee that the player will see the car up on the ledge and all the work will be wasted.
- In a cutscene you can choose an angle from the level of the car which will look much cooler
- The fall will probably kill the player (since you want him to be nailed on the spot ) so a cutscene ending with a gameover is more acceptable than a "what the hell just killed me???"

Regarding the script you simply need a chain of "destroyandactivate" with 3-4 dynamic cars and trigger the cahin with a modified "PushOver" script
from this thread:
http://forum.thegamecreators.com/?m=forum_view&t=182353&b=23
To use it you'll need a copy of the map where the player spawns on the ledge and you activate the script on the car while a gamecam is recording.

In case you find my grammar and spelling weird ---> native German speaker ^^
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 18th Jul 2011 19:04
Or you could order the script from me and Ched.


Cheers.

God help me, Please.
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 18th Jul 2011 22:55
Thanks for all of the comments guys! Yeah im not really good with modeling and scripting yet at all

@2Beastmode4u - I may take up that offer, i don't have moneyz but im working on that...

-Josh
Website is under construction
System Specs: AMD Phenom x3 2.2GHz, 4GB DDR2 RAM, 1TB HD, HD Radeon 5770 1GB, 22in Acer Monitor
raymondlee306
15
Years of Service
User Offline
Joined: 24th Oct 2009
Location: Ohio
Posted: 19th Jul 2011 02:39
You could perch the car (dynamic), and allow physics on the car (is immobile=0). When the player hits a trigger zone a small dynamic item (I always use a coffee cup) is spawned (playerinzoneactivateused) and it's life is set to 1 second then it's destroy script is set to explode. The explosion should be set to JUST enough force to push the car over the side and then physics does the rest. This can all be done with stock scripts and no modifications. Just a little imagination.
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 19th Jul 2011 03:43
Thanks a lot Raymond! I will try that once i get home, i would have never thought of that so thanks for the idea! Except for one problem, whenever i turn an object static->dynamic it looks all glowy if you know what i mean. Like if there is not any light near it it still looks lit up. Anyone know how to make a dynamic object look like a static one?

But thanks again for the idea!

-Josh
Website is under construction
System Specs: AMD Phenom x3 2.2GHz, 4GB DDR2 RAM, 1TB HD, HD Radeon 5770 1GB, 22in Acer Monitor

Login to post a reply

Server time is: 2024-11-24 06:52:25
Your offset time is: 2024-11-24 06:52:25