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 / Anywithinzone Command Error

Author
Message
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 16th May 2011 01:30 Edited at: 16th May 2011 01:44
Ok here it is:


Is there something that I missed? Or does the anywithin command not work? Thanks.


Cheers.


EDIT:
I tried it with the plrwithin command and it worked but I want it to work if an entity is in the zone. Any Ides?

God help me, Please.
trubkiller
13
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 16th May 2011 01:51
Hmm I may not be much of a scripter but when I was flipping threw the commands I didn't see anywithinzone as a command. Also, i think from another thread, someone said there was no way for an entity in zone type thing

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 16th May 2011 01:54
I checked the official command book and found the anywithin command in it. So, it should work...


Cheers.

God help me, Please.
trubkiller
13
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 16th May 2011 01:56
Hmm when I looked through fpi edit pad I didn't find it...

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 16th May 2011 01:58
Yours is either an older version or I added it in. Just check the Official Document and its there.


Cheers.

God help me, Please.
trubkiller
13
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 16th May 2011 02:38
Well either way I don't think its possible or we would have alot greater games now

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 16th May 2011 02:49
It works with plrwithin so why not anywithin?


Cheers.

God help me, Please.
trubkiller
13
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 16th May 2011 02:55
by the way what are you trying to achieve? I may know another way if I knew what you were doing lol.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 16th May 2011 03:30
I'm trying to change the camera view to a different spot when something enters the trigger zone.


Cheers.

God help me, Please.
trubkiller
13
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 16th May 2011 03:48
You mean the player's view, because that would be impossible.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 16th May 2011 04:00
Actually no. I've seen it done before with pure vanilla. All I need is for the FPSC Developers to add the anythingwithinzone or entitywithinzone command and I'll be good to go. Or I could think of another way... Cheers.

God help me, Please.
trubkiller
13
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 16th May 2011 04:02
Oh Well,then...

bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 16th May 2011 11:22
Entitywithinzone=x should work, then if you want to detect the player as well just use a plrwithinzone=x on the same state.

All browsers should come with compulsory spell checks.

Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 16th May 2011 14:13
I can confirm the anywithinzone=1 command works - i use it in my current game successfully. The entitywithinzone does not work - there is no code within the source for this command.

Silly question, but you have named an entity within the trigger zone's "If Used" parameter?

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 16th May 2011 14:55
@Ched80
Yes, I have. It works with plrwithinzone, but not anywithinzone... Even when the player enters during the anywithin zone it just won't work... I don't know why.


Cheers.

God help me, Please.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 16th May 2011 14:58
Have you tried a simple script that just displays some text when an entity enters the zone?

You need to make sure the zone is free from any other entities - boxes, decals, etc. will all trigger anywithinzone=1.

The command works for me so we will find a solution eventually

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 17th May 2011 01:42
@Ched80
Could you save the script in my first post and test it out to see if it works for you? Thanks.


Cheers.

God help me, Please.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 17th May 2011 07:35
Sure, I'll test it on the train into work this morning.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 17th May 2011 09:57
I tested it and it worked fine - have you made the entity named in "If Used" active? "plrmoveifused" won't work if the "If Used" entity is static.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 17th May 2011 15:33 Edited at: 17th May 2011 15:35
@Ched80
Yes it is dynamic. I used a simple teleporter out which by default is dynamic. I've tried this on v. 1.18 Beta 15 & 16, and yet nothing happens even if I walk into the zone myself.

Here are my Steps:
1. I set down a Trigger Zone in front of a door.
2. I give the trigger zone the script with the anywithinzone command.
3. I set down a Teleporter Out and name it "cam".
4. I set the Trigger Zone's "If Used" Parameter to "cam".
5. I set down a thug that is holding a pistol.
6. I run a test game.
7. I force the thug into the zone with my own Silent Hill Script.
8. And NOTHING happens...
9. Then I make my actual player walk into the zone.
10. Yet again NOTHING happens...
11. Then I become frustated because I think that mine is defective...

I remember that once, ONCE it worked... but it sent me to "cam" before anything was even in the zone...

Can anybody help me with this?


Cheers.

God help me, Please.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 17th May 2011 17:21
Beastmode, have you tried the trigger away from the door?

The door may be causing the problem because it is a dynamic entity.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 18th May 2011 01:00
@Ched80: I'll give it a try. Wish me luck. Cheers.

God help me, Please.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 18th May 2011 02:51
Unhelpful Titles

Please do not simply write "Noob Question", "I am a newb", "One Noobie Question", "A question", "Please help", "This isn't working" or anything similar as the title of your post. We have a search facility, and meaningless titles do not help others find answers to their questions. It will also help you to get quicker responses if people have an idea of your thread content.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 18th May 2011 05:05
@Nickydude: Noted. Could you or another Mod change the title to: "Anywithinzone Command Error" Thanks. Cheers.

God help me, Please.
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 18th May 2011 20:04
I found another way to do this script. I just used the anywithin command instead and it's all working great!


Cheers.

God help me, Please.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 18th May 2011 23:57
Quote: "Could you or another Mod change the title to: "Anywithinzone Command Error" Thanks. Cheers."


Done.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 21st May 2011 03:18
@Nickydude

Thanks.

But does anyone know why the anywithinzone command doesn't work for me?


Cheers.

God help me, Please.
frafra_95
14
Years of Service
User Offline
Joined: 27th Oct 2010
Location: Black Mesa Research Facility
Posted: 21st May 2011 19:15
anywithinzone command is used for trigger zones... and it is true if any entity (i think the player too) is in the zone
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 21st May 2011 19:18
@frafra_95
Yes, I know. The thing is even if I walk in the game it just wom't work....

God help me, Please.
frafra_95
14
Years of Service
User Offline
Joined: 27th Oct 2010
Location: Black Mesa Research Facility
Posted: 22nd May 2011 17:02
maybe works only with entities... i don't remember
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 22nd May 2011 18:40 Edited at: 22nd May 2011 18:42
I am going to spill the beans over the whole command issue. anywithinzone and anykeywithinzone only works with entities that are not characters. the player also can't trigger these.

The entitywithinzone command is in the source but has no conditioning to it, it is just a dummy command that was replaced with anywithinzone.

So far, I think there is not really any type of command that will detect a character entity. Maybe Hockeykid, Lee, or some one else that is working on the source could put it in.

EDIT: I did test your script and that is the only reason why I said all this. I did a through test that even went into changing and adding commands.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 26th May 2011 03:30
Yes I know, but the command won't work for me. Even when entities enter the zone...


Cheers.

God help me, Please.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 26th May 2011 03:43 Edited at: 26th May 2011 03:44
anywithinzone used to work. When I made Hypnogagia I used it with a trigger zone. You put the cake in the mouth and the door opened.

Brian.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 26th May 2011 04:59 Edited at: 26th May 2011 04:59
Quote: "anywithinzone used to work. When I made Hypnogagia I used it with a trigger zone. You put the cake in the mouth and the door opened."


It does works...

- BlackFox

The function of good software is to make the complex appear to be simple.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 26th May 2011 05:21
Quote: "It does work"


I haven't tried it lately, but I figured it did.

Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 26th May 2011 06:26
I tried a code like this to get a character to trip the trigger zone.



It would not work for me, until I lowered the purple square on the trigger zone to the ground level. As soon as I did this the character was able to activate the trigger zone, plus I was able to throw entities across the trigger zone to activate them also.

Just what I have found out so far.

Nothing but coffee in my veins 'Insomnia is Coming'
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 28th May 2011 01:45
Quote: "It would not work for me, until I lowered the purple square on the trigger zone to the ground level. As soon as I did this the character was able to activate the trigger zone, plus I was able to throw entities across the trigger zone to activate them also."


@ Pirate Myke

Good catch. I too had to do that exact thing, and had forgotten about that little piece of information. Thanks for posting that.

- BlackFox

The function of good software is to make the complex appear to be simple.
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 28th May 2011 02:15
Found it strange. But whatever works right.

Nothing but coffee in my veins 'Insomnia is Coming'
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 13th Jun 2011 06:23
It is very strange. I hope it is fixed soon.


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators

Login to post a reply

Server time is: 2024-11-24 08:35:13
Your offset time is: 2024-11-24 08:35:13