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 / Help with this zone script

Author
Message
Hamburger
15
Years of Service
User Offline
Joined: 23rd Jun 2009
Location: Grand Rapids MI
Posted: 12th Sep 2011 03:53
I cant seem to get this script to work, basically what it is supposed to do is when the player is in the zone, the entity appears, but when the player steps out of it, the entity disappears. I gave the entity to be activated controlspawn.fpi but uit only activates and stays activated... here is what I have:



If somebody could show me what I am doing wrong it would be VERY helpful, because I have been stuck on this for a____LONG____time.

[/href]
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 12th Sep 2011 04:46 Edited at: 12th Sep 2011 05:09
Try this for starters:



:Condition:Action
Two colon to seperate the condition from action statements.

Also Plrinzone is not a valid condition or statement.


{Edit}
Anyway it does not work like you want. Yes it spawns it, but when you step out of the zone, will you ever need it on again??

If not the you could just detroy it in state=1 line of the controlspawn.fpi script. and it kind of works.

I tried to have its lives at 10 and spawn when dead to be there for reentry into the trigger zone but, the item either would not respawn or did all 10 lives so fast, that it made it seem not to work. I could not tell.

Is this a stock entity? Do you have a model program you could do a simple animation in. Hiding the Object under the floor level when you did not want to see it and having it above the floor level when you did. Giving you 2 anim to be able to call in your script.

Other thing you could try is alttexture action. Your other texture would be all black, so it would be invisible.


Hamburger
15
Years of Service
User Offline
Joined: 23rd Jun 2009
Location: Grand Rapids MI
Posted: 13th Sep 2011 05:21
Basically what I am using it for is a dynamic entity that emits sound, and when the player gets far enough away from it it will disappear to stop the sound from being heard elsewhere... I'll try playing around with some destroy scripts and stuff and see what happens, but thanks for the reply!

[/href]
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 13th Sep 2011 11:21
try my system for this, hope it helps. it seems its exactly what you search for:

http://forum.thegamecreators.com/?m=forum_view&t=187181&b=23

Login to post a reply

Server time is: 2024-11-24 05:36:22
Your offset time is: 2024-11-24 05:36:22