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 / Stealth Script required

Author
Message
DiDiT
16
Years of Service
User Offline
Joined: 30th May 2010
Location: England
Posted: 29th Aug 2010 19:49
Okay, I've been working on a demo and ran into a little problem.
I've been useing the script from http://forum.thegamecreators.com/?m=forum_view&t=129552&b=23
to create a area where the player must stick to the shadows and avoid a couple of guards, but I cant seem to get the guards to ignore the player when he's in the 'stealth zone', they just charge at him whenever, guns blazing.

I think something is wrong the AI script. here's my script:




Can anyone see if I've done something wrong?


Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 29th Aug 2010 23:17
In the script there are not any line that says that when the player can't be seen the enemys have to ingore him i think

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
DiDiT
16
Years of Service
User Offline
Joined: 30th May 2010
Location: England
Posted: 30th Aug 2010 00:04
Oh? but the AI can only see the player if they are out of the zone.

plrcanbeseen,varequal=0:

so I need A plrcantbeseen,varequal=1: too?


Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 30th Aug 2010 00:06
Nope, just add the varequal=0 after plrcanbeseen

-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
DiDiT
16
Years of Service
User Offline
Joined: 30th May 2010
Location: England
Posted: 30th Aug 2010 00:09
but I have...


Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Aug 2010 03:05
What does your zone script look like? That is what should be setting the variable to a 1 or 0, to let the AI know if the player is within a "stealth zone" or not.


The one and only,


DiDiT
16
Years of Service
User Offline
Joined: 30th May 2010
Location: England
Posted: 30th Aug 2010 12:53
well, I'm using the script that came with the thread I linked to in the first post.




Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Aug 2010 22:49
Nothing script-wise that I can see wrong with it.

How do you have the area set up? Perhaps the gaurds are "seeing" the player before the zone script even has a chance to run? Try not to put the guards around where the player spawns to avoid that.


The one and only,


whats wrong with this script!
15
Years of Service
User Offline
Joined: 23rd Sep 2010
Location: TOP SECRET
Posted: 24th Sep 2010 02:11
try mine out well i need a tester plz?

l

Login to post a reply

Server time is: 2026-07-26 05:22:54
Your offset time is: 2026-07-26 05:22:54