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 / Entities spawn with trigger zone, how? PLZ help. ( read under the title )

Author
Message
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 16th Dec 2012 21:48
Okay so i have a problem. When i add a zombie and name it "enemy1" then set his/her spawn at start to "no". After that i create a trigger zone set the main script block to "plrinzoneactivateused" (or something like that) and in the if used block i write the "enemy1" and test the game. Result: when i walk in the trigger zone my zombie appear. So everything works fine. BUT when i try to spawn something else like a rock it appear when i test the game ( and it's set to spawn at start to NO)
I've tried this with other entities like a chair,table,phone etc. with same result.
-----------------------------------
I need to solve this problem. I want my character to go throught a corridor and when he hit the trigger+sound zone he hear an explosion and when he turn back the corridor is blocked by rock so he need to countinue the way forward.
-----------------------------------
Please help my asap if you can, any advice is welcome here.
PS.: Your name could be in the credit ( if you accept )
PS.2: Sorry for my bad english

I'm bored
Belacios
12
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 16th Dec 2012 22:39
Hey bro!

Have you put the "Spawn after Delay" to "Yes", right?
If not, just do that, lol.

Bad english? what's your nacionality? XD
I'm brazilian. We can talk and work in some ideas to our games if u want!!

If you are interested, you can mail me:
thecultstudios@hotmail.com

Good luck there bro, I hope my answer helps.
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 16th Dec 2012 23:08
Well, i dont get it what you mean at Spawn after delay :/
Ehm, i made a little progress with set my rock entity static to dynamic. Now it's dissapered and when i walk into my trigger zone it appear. Just how i want! The only bad thing is about that its dynamic so its moveable ( with the RMB ) so the player just canthrow away my barricade.
--------------------------
So second try. I set my rock physics weight to 9000 and now its unpickable. Done!! Or not? It's dynamics object so the player can push it away. He just need to walk/rush into it.

Ehm, I'm from Hungary and when i said bad english i mean the grammar of the sentences might be not right. And some words missspealling(<---like this one :-p )

Working with someone in a same project would be awsome. We can try to make something. My email is: szel_martin@freemail.hu

Cheers,
Maxi

I don't buy games....i make them.
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 17th Dec 2012 10:00
maxi360

To make the 'rock' un-movable you must include a line in the FPE file for the rock (check below):

unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 17th Dec 2012 13:37
Ross is correct, unless you wanted your rock to 'fall' into place?

I only say this to help avoiding confusion.

I have used this technique to scare the player by making crates fall just in front of them.

The added line 'isimmobile=1' will mean that the rock won't fall, it will appear and stay floating in the air.

On the other hand, if you have you rock placed where you want it to be, then ignore everything i have just said....

Unfamillia

maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 17th Dec 2012 13:46 Edited at: 23rd Dec 2012 21:18
Thanks you all for the information but i have solved my problem last night. I just didnt have time to write a post here.

My first try was IsImmobile set to Yes but then the player can walk through it.

Second try set the entities physics weight and friction to '20000'.
So the player can't pick it up and he can move it extremly slowly ( i guess higer value make even more slow but 20000 is more than enough).

Maxi.

I don't buy games....i make them.
Belacios
12
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 17th Dec 2012 15:40
Looks like I can't send you mails... :/

Well, look for me in my Youtube channel:
http://www.youtube.com/user/TheCultStudios?feature=mhee
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 17th Dec 2012 20:44
Belacios,
I got your mail so it's work. I sent my YouTube profile to you. ( to your YT profile ) so we can talk there because i check YouTube more often rather than my mails.

I don't buy games....i make them.

Login to post a reply

Server time is: 2024-11-23 17:02:51
Your offset time is: 2024-11-23 17:02:51