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 / Is it possible to spawn a decal when an entity is destroyed?

Author
Message
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 13th Jul 2011 12:01
here is what I am trying to do. The player starts the level in the basement. The first door is remotely activated when a "door control box" on the wall is destroyed. I have it set up so when the control box is hit with a mele attack and destroyed. A damaged controlbox is spawned in it's place. What I would like to do is also spawn a "spark" decal coming out of the destroyed control box when the first one is destroyed.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 13th Jul 2011 18:34
When the damaged control box spawns, it can activate the decal.

In the main script for the damaged control box, make sure you have the "activateifused=1" action present in that script. You would most likely have that towards the beginning of the script.

Then in the IfUsed field of the damaged control box properties, put the name of the decal.

In the decal properties, set the main to decalactivate.fpi and in the start script, use this script:



- BlackFox
xplosys
20
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 13th Jul 2011 19:27
Thanks Mike. This is useful.

Brian.

BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 13th Jul 2011 19:33
No problem. Anything for the people.

- BlackFox
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 14th Jul 2011 10:57
Mike,
I tried to do this but couldn't find the decalactivate.fpi file.
Sparrowhawk
15
Years of Service
User Offline
Joined: 12th Apr 2011
Location: Planet Magrathea
Posted: 13th Aug 2011 12:56
Also - how do you spawn an entity when an entity is destroyed?
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 13th Aug 2011 17:32
Quote: "I tried to do this but couldn't find the decalactivate.fpi file. "


Decalactivate.fpi



Quote: "how do you spawn an entity when an entity is destroyed?"


In the entity's destroy script, set to "scriptbank\destroy\destroyandactivate.fpi", and in the IfUsed field you put the name of that entity to spawn.


Twitter: @NFoxMedia

Login to post a reply

Server time is: 2026-07-01 09:06:47
Your offset time is: 2026-07-01 09:06:47