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 my script ( hurt player if he see enemy )

Author
Message
abdullh
12
Years of Service
User Offline
Joined: 30th Aug 2012
Location:
Posted: 28th Oct 2012 20:30
hi
it's me again

i have my script and i edit many times to make perfect

everything it's work except one thing

i will give you example

if player see enemy it will be hurt

but if the player behind the door or wall and the enemy can not be seen because the wall or the door between them ...how it is work?

the result if the player behind wall or door he will get hurt if he see the wall behind enemy

here my script



sorry for my language i hope you understand what i mean
i need to fix this

thanks a lot
waiting your answer
abdullh
12
Years of Service
User Offline
Joined: 30th Aug 2012
Location:
Posted: 29th Oct 2012 20:07
need help anyone ?
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 29th Oct 2012 20:37 Edited at: 29th Oct 2012 20:41
inview is a condition which describe if the player can see the npc
if i understand you correct, you must use the plrcanbeseen and plrcannotbeseen comands:


Edit: i missunderstand you! Sry. at the moment i can not help you, because i did not know a command which can do what you want! Maybe you should use plrdistwithin and plrdistfurther! But this is not perfect solution

Login to post a reply

Server time is: 2024-11-23 19:29:20
Your offset time is: 2024-11-23 19:29:20