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 / NEED SCRIPT!! A wall where the player cant go throughn but enemies can

Author
Message
SnowBoardin360
15
Years of Service
User Offline
Joined: 29th Nov 2009
Location:
Posted: 28th Dec 2009 04:45
I need an inivisble wall where enemies can go through but you cant. I have the working invisible wall entity but I need the script so enemys can go through... help me please

SUP
Old But Still Kickin
17
Years of Service
User Offline
Joined: 29th Feb 2008
Location: U.S.A.
Posted: 28th Dec 2009 04:50 Edited at: 28th Dec 2009 04:57
Wouldn't it be esier to use a trigger zone for something like that?
Have an opening that any entity may walk through but the player.
I'll check around for ya some script that may help.



Never give up trying. Just try it another way that works for you.
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 28th Dec 2009 05:31
maybe try a one sided invisible wall? see if they collide?



to fenix mod!
PW Productions
16
Years of Service
User Offline
Joined: 13th Mar 2009
Location: sitting in a chair.
Posted: 28th Dec 2009 07:51
Quote: "maybe try a one sided invisible wall? see if they collide?"


I tried it once, the enemies wouldn't go through, no matter the side, and whenever I touched it, it glitched me through the floor. But it was a good idea...

Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 28th Dec 2009 10:53
Make a trigger zone which forces the player backwards by a larger amount than can be moved. Something like:

:plrwithinzone=1:plrmovesouth=3

I've never used that action but it should work. It depends which direction the player is facing.


THE ONLY WAY TO STAY OUT OF IGNORANCE IS TO KEEP ASKING
SnowBoardin360
15
Years of Service
User Offline
Joined: 29th Nov 2009
Location:
Posted: 28th Dec 2009 18:50
ok, ill try it marc. hmm... I might just havea dark room then zombies come from the dark places :/ except that the player might get it :/

SUP
SnowBoardin360
15
Years of Service
User Offline
Joined: 29th Nov 2009
Location:
Posted: 28th Dec 2009 18:54
doesnt work mark and sadly im not a very good coder so i really wouldnt know how to edit it.

SUP
Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 28th Dec 2009 19:05
I don't think there's a way to directly achieve this without mods. You could do a work around by using the following script:

:state=0,plrwithinzone=1:plrmoveto=marker

Put that script into a trigger zone, and when the player enters it they will move to the entity 'marker' (you'll need to create a dynamic entity named marker which tells the engine where to move the player.


THE ONLY WAY TO STAY OUT OF IGNORANCE IS TO KEEP ASKING
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 31st Dec 2009 11:35 Edited at: 31st Dec 2009 11:36
Quote: "I don't think there's a way to directly achieve this without mods. You could do a work around by using the following script:

:state=0,plrwithinzone=1:plrmoveto=marker

Put that script into a trigger zone, and when the player enters it they will move to the entity 'marker' (you'll need to create a dynamic entity named marker which tells the engine where to move the player."


Maybe you can try this is a wild idea but it should work in prinicple. My initial thought was also push south, but since it dosent work i think this should to do it. Its a wild idea but bare with me



When the player is so close to the "barrier" the barrier will have
it colision mode on, when he moves away its off again. So when the player is so close just think about adding a script that the zombie does damage with a X distance and stop folowing waypoints when close enough to the player and play a animation which the zombie just stands still and hitting. Thus it will fake a "barrier" script.

Dont know if it will work, in princeple it should but i havent tested it. Its somthing to think about atleast.

-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...
SnowBoardin360
15
Years of Service
User Offline
Joined: 29th Nov 2009
Location:
Posted: 1st Jan 2010 20:13
but, Mas the zombies will stop and the player wont get hit, im ok with using mods aslong as they have AirMod. Which mod should I try

You don't fight war for your contry, you don't fight war for your Queen, you fight war for the person beside you.
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 1st Jan 2010 21:09
Quote: "but, Mas the zombies will stop and the player wont get hit, im ok with using mods aslong as they have AirMod. Which mod should I try"


If you asign "plrdistwithin=60" then damage the player it should work fine. I would recomend Fenix (which has airmod intergrated i think)



-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...

Login to post a reply

Server time is: 2025-05-28 02:06:51
Your offset time is: 2025-05-28 02:06:51