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 / "Delete Dynamic Objects When Player Leaves Vicinity"

Author
Message
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 12th Nov 2013 22:33
I followed exactly what the FPSC guide 2 told me and it doesn't work. Is it just me? I'm using v1.2 b17h.

Don't waste your life
Pirate Myke
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 12th Nov 2013 22:54
Try just using setvar instead and see if it works for you.

If not the you can add this type of line to ant object you want to get rid of when done using it.

Using plrdistfurther condition to determin the range when you want the entity destroyed.

For example:
You have a dynamic object in your room. At the last part of the script have the last line that says:

:state=##,plrdistfurther=300:activateifused=1,destroy,state=1000

plrdistfurther=300 is the range of the players distance that you want the destroy to happen.

Activateifused=1 is for if you need to activate some other object before distroying this one.

Destroy - destroys the enity and the last state=1000 is to end the script loop for no further actions.

A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 12th Nov 2013 23:51
Thanks! Just using setvar fixes the problem.

Don't waste your life
Pirate Myke
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 13th Nov 2013 01:12

Login to post a reply

Server time is: 2024-04-26 14:35:10
Your offset time is: 2024-04-26 14:35:10