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 Product Chat / Radius of items being picked up. How to change?

Author
Message
MaarX
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location:
Posted: 13th May 2006 23:13
I have for example made a bathroom in my map, and on the toilet is a medkit (unusual place but ok ) well... My character only has to open the door and not even come to near to the medkit, and it already has been picked up... Now my question... Can I change it , so that i have to touch the medkit?

Thanks,

Starmaart
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 13th May 2006 23:20
Here you go just press enter to use wether you health is 100% you can still use it

Artificial Intelligence Script

;Header

desc = Pickup HEALTH (press enter to use)

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=medipack,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=medipack,hudfadeout=medipack

:state=10,plrdistwithin=60,plrusingaction=1:activate=2
:state=10,activated=2:state=1,playertake,plraddhealth=50,plrsound=audiobank\scifi\items\healthup.wav

;End of Script


Not mine credits for CTM of course

MaarX
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location:
Posted: 13th May 2006 23:42
What is the name of the script file i need to edit? Can't find Artifical intelligence.fpe or something.

Thanks
Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 13th May 2006 23:45
Place the health item. Now right click on it to get it's properties. At the AI script you'll see pickuphealth.fpi or pickuphealthglow.fpi at the main position. Click on it and a file selection menu opens. Locate either pickuphealth.fpi or pickuphealthglow.fpi and open them with a notepad

Now you see the health script. Find this part: plrdistwithin=80 Put alow number, for example plrdistwithin=50 The lower the number, the closer the player needs to get to pick up the item.

While I'm on it, plraddhealth=50 tells you how much health the player gets. The lower the less, the higher the more.

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 13th May 2006 23:46 Edited at: 13th May 2006 23:48
Starmaart,

Distances in this and many other cases inside scripts are controled by the plrdistwithin=60 (yourdistance) and plrdistfurther=60 so changing these figure is relative to entity activation distances in relation to the player in the various script functions.

Edit : Sorry beaten to it

Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 14th May 2006 00:53
Quote: "Sorry beaten to it"


Perhaps I'm typing faster

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
MaarX
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location:
Posted: 14th May 2006 01:12
Thanks! it works (well off course it does ) hehe

One more problem... I accidentaly made a single player map instead of a multiplayer map,,, how can i change it? (Without restarting my whole map)
Lizblizz
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location:
Posted: 14th May 2006 02:11
i dont think you can hate when that happends cus a stupid program opens up when i test game and mouse gets locked in middle i just awitch users and clike the user i was and it gose away

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 14th May 2006 08:27
Yes you can.Click on file and then preferences.Click on multiplayer.


FLa
Where you can find my demo:http://www.savefile.com/files/6970524
MaarX
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location:
Posted: 14th May 2006 20:44
Thanks! it works

Login to post a reply

Server time is: 2024-11-24 19:51:30
Your offset time is: 2024-11-24 19:51:30