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 Product Chat / Making a SPAWNED character/entity vanish

Author
Message
Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 16th Jun 2009 00:10 Edited at: 16th Jun 2009 00:11
Well, first off, sorry for all the questions, as ive said im still pretty new at this

I need a way to make an entity that:
A: Doesn't spawn at start so activation is required to spawn him

B: Gets destroyed when he is activated again.

I've tried editing the FPI so that
Activated=2 ? Would make him Vanish. Well, that doesn't work, going along with my noobish prowess at FPI (none of my scripts work...(well...2 work ) )


As always, any help is appreciated!

Yeah... got hurt when i tripped... on some bullets
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 16th Jun 2009 00:22 Edited at: 16th Jun 2009 00:23
Using a trigger zone would be your best option for in game spawns. When a player steps on the trigger zone it will spawn the toon you want so no toon on start untill you walk on the trigger.

Directions..

Put a trigger zone on your map someware where your guy would walk
Add the entity where you want him someware normal out of sight

Property's
Trigger zone
- If used = guard1

Entity
- Name: guard1
- Spawn at start = No
- Spawn after Delay = Yes

Dont put anything in delay number

Now when your toon walks on the trigger zone it will spawn your guard/mob

Edit: Forgot to mention this method will only spawn the guard once so when you walk over the trigger again it wont spawn

===================
InnerCityWar http://Paradoxial.net (Not open yet)
ScreenShots Soon to come
Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 16th Jun 2009 00:53
Ummm, yes, i know how to spawn them with the trigger zone

My question is how to delete them after hitting another zone

Thanks any ways

All the best

Yeah... got hurt when i tripped... on some bullets
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 16th Jun 2009 00:58
ahh no destroy script you can use for a tigger?

===================
InnerCityWar http://Paradoxial.net (Not open yet)
ScreenShots Soon to come
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 16th Jun 2009 00:59
i'll see if i can come up with something later on for you if no one else does

===================
InnerCityWar http://Paradoxial.net (Not open yet)
ScreenShots Soon to come
Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 16th Jun 2009 17:45
Anyone else? This is really important for the next level of my game, as there are a lot of characters so i need to be able to delete some and free up processing

Any help is really appreciated guys, if i can't figure this out, i'll have to rework just about the entire level design.

Yeah... got hurt when i tripped... on some bullets
Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 16th Jun 2009 18:04 Edited at: 16th Jun 2009 21:51
I have a destroy script I created last night actually, I can post it when I get home as I'm at work right now,

It just is a follow waypoint then destroy script

...actually if you take the follow script from the stock scripts and change :waypointstate5=x to :waypointstate=5:destroy

Basic set up would be:
entity with followdestroy script, with properties set to start at spawn no, and spawn after delay yes, set waypoint from entity start and where you want it to dissapear and the apply the entity name to the trigger zone and change the main to plyinzoneactifused script.

That should do the trick, if not, let me know and I'll post the script later.

Code now attached!

Video example also attached!





Attachments

Login to view attachments
Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 17th Jun 2009 20:57 Edited at: 17th Jun 2009 20:57
Well, that's good and all, actually it is very useful , but i just simply need a script that will delete him when i enter a zone

tyvm though for tryin to help!

Annyone else got a solution?

All the best

Yeah... got hurt when i tripped... on some bullets
Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 18th Jun 2009 22:13
Well, i never got a straight answer..., but that's alright, i finally found out on my own

Thanks for the help anyways i guess.

Yeah... got hurt when i tripped... on some bullets
Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 18th Jun 2009 23:20
How did you achieve the effect?

Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 19th Jun 2009 00:44
I had to end up using variables, I added to his script, that if the variable goes to 2 or higher he gets destroyed and a i made a trigger zone that increases the variable, therefore destroying him


Thanks for your script though, as i may need that as well!

All the best

Yeah... got hurt when i tripped... on some bullets

Login to post a reply

Server time is: 2024-10-16 01:22:35
Your offset time is: 2024-10-16 01:22:35