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 / Leave a corpse and activate a guard

Author
Message
Deathray
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 6th Dec 2009 23:27 Edited at: 7th Dec 2009 00:22
Hi,

I needed a script that would trigger a security guard if the player killed certain types of NPCs, but I also wanted the corpses to stay in the level. I looked at some "die and trigger" scripts, and the leave corpse script.. and appended a line of code. I tested it out a few times and it seems to work. I figured someone else might be looking for a similar "punishment" script. I suppose it could also be used to trigger a ghost NPC of the one you just killed (using a small delay for added effect).
You should change the "Secguard" to the name of the NPC you want to appear



My goal was to use this as a death script for 6 NPCs, each one triggering a security guard to go after the player, should they decide to kill one. I did have a problem getting more then the first guard to spawn, but as a work around, I wrote the script six times to trigger Secguard1, Secguard2 /etc.

Attachments

Login to view attachments
Deathray
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 7th Dec 2009 01:08
http://www.youtube.com/watch?v=Jw4BY4FIEcU
Youtube video showing the script in action, and showing a second NPC spawning their own 'punishment' guard

Login to post a reply

Server time is: 2024-11-25 05:27:26
Your offset time is: 2024-11-25 05:27:26