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 / how do you make an object fall when you pass it

Author
Message
kcelf760
17
Years of Service
User Offline
Joined: 24th Jul 2007
Location:
Posted: 5th Oct 2007 03:51
hello, im trying to make an object fall when i pass it or get near it...can some1 help me plz
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 5th Oct 2007 13:50
try this:


Haven't tried it out yet, hope it works


The Swarm of flying pigs is coming...
Killer&Slaughter Machines Pack too!
SamHH
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Vermont
Posted: 6th Oct 2007 02:24
Put your object high up in the air and have its script as activate if used, have a trigger zone around where you want the object to fall and put the entity's name in the if used field.


kcelf760
17
Years of Service
User Offline
Joined: 24th Jul 2007
Location:
Posted: 6th Oct 2007 02:55
all of this doesnt seem to work..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Oct 2007 03:04
Your entity needs to be dynamic as well, if it isn't, then you won't be able to run any scripts with it.


The one and only,
~PlystirE~

In Soviet Russia, road forks you!

Mom: I may not be the alpha and omega, but I can sure as hell be yours!
kcelf760
17
Years of Service
User Offline
Joined: 24th Jul 2007
Location:
Posted: 6th Oct 2007 04:19
well yes it is....but can u explain how do i put the script and everything better
SamHH
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Vermont
Posted: 6th Oct 2007 07:15 Edited at: 7th Oct 2007 02:01
Right click on the entity.
Change its spawn after delay field to yes.
Change the spawn at start field to No.
Add a trigger zone.
In the if used field of the trigger zone type the name of your entity.
Now change the triggerzone script to plrinzone activate etc.
The end
edited after COZ to eliminate confusion.


kcelf760
17
Years of Service
User Offline
Joined: 24th Jul 2007
Location:
Posted: 6th Oct 2007 07:43
i dnt have activate if used
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Oct 2007 08:18
@kcelf760:

I'm afraid there may be a point in time where you MAY need to make a new script for certain things.


The one and only,
~PlystirE~

In Soviet Russia, road forks you!

Mom: I may not be the alpha and omega, but I can sure as hell be yours!
creator of zombies
18
Years of Service
User Offline
Joined: 16th Feb 2006
Location: UK: West Wales
Posted: 6th Oct 2007 17:49 Edited at: 6th Oct 2007 17:50
@i want to game: wrong im afraid

Here's how you do it:

* Add the object to your level, a crate for example. Name the object 'crate' or whatever
*right click on the crate: set the spawn at start=no then spawn after delay= yes. (make sure the entity is dynamic).
*Place the crate one or two layers up
*Insert a triggerzone under the crate
*right click on the trigger zone. In the 'ifused' box type 'crate'
*Change the main script of the triggerzone to 'plrinzoneactivateifused.fpi' (it's in the script bank)
*Click apply and test your game. The crate should now fall directly in front of the player.

Hope that helps

Good Luck

-Creator of Zombies-



kcelf760
17
Years of Service
User Offline
Joined: 24th Jul 2007
Location:
Posted: 6th Oct 2007 21:13
Thank you Creator of zombies....it worked good
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Oct 2007 08:45
Awesome, now if the player destroys the crate, we can have a crate factory!

Nice work, COZ!


The one and only,
~PlystirE~

In Soviet Russia, road forks you!

<img src="http://www.danasoft.com/sig/PlystiresRoadSign.jpg" border="0">

Login to post a reply

Server time is: 2024-11-23 22:51:39
Your offset time is: 2024-11-23 22:51:39