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 / Barrier that only enemies can go through?

Author
Message
97k
14
Years of Service
User Offline
Joined: 24th Jan 2011
Location:
Posted: 3rd May 2011 03:46
Well I was thinking the other day, and I was wondering if there was something I could use, like a barrier, invisible or not, that only enemies could walk through, im using 1.18 beta, if that means anything. The problem is, and the reason im posting, is because I dont even know where to START with this. Maybe a script that could help?
P.S. If im posting on the wrong board, (I dont think I am, but still ) please tell me.

Thanks in advance!
Bye
Design Runner
14
Years of Service
User Offline
Joined: 16th Oct 2010
Location: In my own little world.
Posted: 3rd May 2011 03:58
The basic concept would be to do this:

state=0,plrdistance=100;collision=0

Of course, that won't work, but it gives you the concept so you can try it yourself. You will have to find the actual commands for collision

xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 3rd May 2011 04:00 Edited at: 3rd May 2011 04:01
I believe the commands are collon and colloff.

Nope, it's colon and coloff. I checked.

97k
14
Years of Service
User Offline
Joined: 24th Jan 2011
Location:
Posted: 3rd May 2011 04:32
Ok thanks! Ill try and work on this tomorrow, as its getting late where I live.
Again, thanks
97k
14
Years of Service
User Offline
Joined: 24th Jan 2011
Location:
Posted: 3rd May 2011 22:29
Okay, so I decided to tinker around a bit with the script.



So thats what I have, heres the problem.
Nothing can walk through it, but when I walk over to it, it dramaticly flys backwords with out tipping over.
Thats when it was set to dynamic.
When it was static, well you know it just sat there.
I typed this in FPI Edit Pad and it did not say anything was wrong, so I believe it was typed correctly.
Im so confused right now, why does it fly back? I thought maybe because 100 is too close, and by the time it switches its collision on, im already in it. I dont know, any help? Anything I should add to the script?
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 3rd May 2011 23:08 Edited at: 3rd May 2011 23:13
Set physics to off and the object as immobile. 100 is fine, thats one segment away. Out of curiosity, are entities able to move through it?

97k
14
Years of Service
User Offline
Joined: 24th Jan 2011
Location:
Posted: 4th May 2011 01:31
Quote: "Out of curiosity, are entities able to move through it?
"


Thanks for the help, ill try that soon.
As for entities, characters,( im using zombie apacolapse pack for this) could not move through it with my script.
Quote: "Set physics to off and the object as immobile."


Ill try this. Thanks

Login to post a reply

Server time is: 2025-06-07 17:03:04
Your offset time is: 2025-06-07 17:03:04