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 / Entity disabled

Author
Message
alimpo83
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 17th Mar 2010 22:46
I need a script to disable entities both when entering a triggerzone or using a switch. The truth is I've searched the foruns, tried old scripts but didn't manage it to work!

I can spawn entities easily but can't destroy them using the inverse process, I'm going insane!

Could this be a FPSC bug or am I getting it wrong?

I'm using this for triggerzones and then the "IF USED" with the name of the entity I want to destroy:

;Artificial Intelligence Script

;Header

desc = immediately destroy

;Triggers

:state=0:state=1
:activated=1:destroy

;End of Script


And I am using other scripts, but with no sucess whatsoever.

Currently working on the MindTrix Entry:
alimpo83
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 18th Mar 2010 14:42
Anyone?

Thanks in advance!

Currently working on the MindTrix Entry:
ctm
21
Years of Service
User Offline
Joined: 25th Feb 2005
Location:
Posted: 18th Mar 2010 20:51
The default triggerzone will only activate entitys which are in the zone.

Use the zoneactivate script for the triggerzone. (it is already in your scriptfolder)

Use this one as the entitys Mainscript:



I've tested it...works fine.
alimpo83
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 19th Mar 2010 13:35 Edited at: 19th Mar 2010 15:00
Thanks, I'll test it and post the results!


EDIT: Got it to work, thanks a lot!

Currently working on the MindTrix Entry:

Login to post a reply

Server time is: 2026-07-26 20:14:23
Your offset time is: 2026-07-26 20:14:23