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 / Enemy walks in trigger and disappear?

Author
Message
AmazingGaming
12
Years of Service
User Offline
Joined: 23rd Sep 2012
Location: Good Question....
Posted: 11th Oct 2012 04:04
I am trying to find a script for an enemy that when they go into the trigger zone, it makes them just vanish or disappear. Right now the whole situation is when I walk into a trigger zone, it makes the enemy spawn and follows a path to the trigger that i want it to disappear at. I cant figure out how to make it go away.

And i dont want an animation that shows the enemy die just something simple where he is gone.

its for my horror game if u were wondering

I have FPSCx9 and version 1.18
Burger
12
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: New Zealand
Posted: 11th Oct 2012 13:25 Edited at: 11th Oct 2012 13:26
How about using a timer? After x milliseconds destroy?

Something like this possibly:


5000 meaning five seconds, or replaceable with any value. That script presumes it doesn't need to walk into a zone, it just walks until the timer is up. You would need to figure out how long it takes the entity to get to the zone.

If the main script requires waypoint detection and such it would still be possible to merge them.

Hope that helps

"I'm inspired by my own wise quotes, thank you." - Burger, 6/7/12
AmazingGaming
12
Years of Service
User Offline
Joined: 23rd Sep 2012
Location: Good Question....
Posted: 11th Oct 2012 14:26
@burger thanks ill check it out later after school that script would be good for something like a pop up for a horror game lol thanks ill check it out!

Also good luck on instinctive fear!
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 11th Oct 2012 19:24
if you want to do it with triggerzone
triggerzone main script

put this in a line anywhere in your character main script


be sure that no other entity is in the zone

Burger
12
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: New Zealand
Posted: 12th Oct 2012 00:53
I thought people had trouble with entitywithinzone=1 for some reason, while I've never tried it myself I'm sure I've read on a thread or two issues with that condition. Anyway, there should be no reason why Corno's script wont work.

"I'm inspired by my own wise quotes, thank you." - Burger, 6/7/12
AmazingGaming
12
Years of Service
User Offline
Joined: 23rd Sep 2012
Location: Good Question....
Posted: 12th Oct 2012 02:32
Ok thanks guys for your help!

Ill go check them out and see what i can do

You both get a token for your help

Login to post a reply

Server time is: 2024-11-23 19:31:06
Your offset time is: 2024-11-23 19:31:06