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 / destroy invisible item after killing enemy

Author
Message
xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 23rd Jul 2012 21:57 Edited at: 23rd Jul 2012 21:58
hello

im working towards an \"on the rail\" shooter
i am having trobles gettin the platform/player to stop or pause at certain action points. I dont know how to get it to pause at these action spots, so i am placing an item in the waypoint path. this holds the lift in place while fighting enemy. After enemy dies i destroy the item in path with this destroy & activate.

it works, when i kill the enemy the item disappears .. my problem is that i want that item to be invisible. i can make the item invisible but cant destroy it after killing the enemy.

The enemy is using default destroy/activate script & if used
here is the destroy script used in item appear script


;Artificial Intelligence Script

;Header

desc = Remote destroy

:state=0:state=1
:state=1,activated=1:state=2
:state=1,activated=0:state=100
:state=2:activateifused=1,destroy
:state=100:state=1



this is what i was trying to make the item invisible ( as appear script )

;Artificial Intelligence Script

;Header

desc = Remote destroy

:state=0:setalphafade=0,runfpidefault=1,state=1
:state=1,activated=1:state=2
:state=1,activated=0:state=100
:state=2:activateifused=1,destroy
:state=100:state=1

it is invisible, but does not destroy after killing enemy
anyone know how this can be done
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 23rd Jul 2012 22:19
Use the appear script only to make the entity invisible and the main script for the actions.
xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 24th Jul 2012 01:06 Edited at: 24th Jul 2012 01:06
yes, followed your advice
& it worked like a charm ( thank you )
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 24th Jul 2012 01:37
You're welcome.

Login to post a reply

Server time is: 2024-11-27 15:10:01
Your offset time is: 2024-11-27 15:10:01