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 / Disable an entity when shot...

Author
Message
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Oct 2007 05:58
Okay, I want to disable an entity when I shoot it, and not destroy it. That's easy enough with the "leavecorpse.fpi" destroy script, but I want the entity to "come back to life" after about 20 seconds.

Here is what I got so far:

Destroy script:


I have the entity's "Strength" property set to 1 so that it'll "die" in one shot and run this script.

When I test the game and shoot the entity, it will disable and re-animate after 20 seconds... but after running half of it's animation, it will disable again.

How do I bring the entity back to life?

If I am unable to give it health, then how can I do this without using the destroy script?


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!
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 5th Oct 2007 09:46
play around with the respawn options in the editor.
If think there is a spwan after delay and spawn when dead and such things.
Have a try and tell if it works.

Visit our new website! www.bigvikinggames.tk !New Forum is up!
Follow the progress of Lost Treasures
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Oct 2007 11:33
It probably would work, but I don't want the entity to disappear, or even have many of the same entity popping up in the same spot when a new one spawns.

I dunno, maybe I'm overthinking how this would work, I'll go give it a shot and let you know the result.


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!
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 5th Oct 2007 13:44
the timer often doesn't work


The Swarm of flying pigs is coming...
Killer&Slaughter Machines Pack too!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Oct 2007 13:53
Got it working, however, when the entity respawns, it will disappear and reappear again very quickly. that's just a mild graphical bug, but it would be nice to find a way around it, like maybe respawning one THEN destroying the old one.


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!

Login to post a reply

Server time is: 2024-11-23 23:00:38
Your offset time is: 2024-11-23 23:00:38