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 / scirpt wanted

Author
Message
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 18th Apr 2008 01:52
I have no idea how to write fpi code, I am slowly learning, and I wondered if anyone could make a script that when you collide with an entitie it uses its destroy script. Any help would be appreciated.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Apr 2008 09:17
As stated in one of the stickies here, we don't supply code, we supply hints and helps to get YOU to code it.


What you're looking for is a way to determine if the player is close enough to the entity to consider that they've run into it. You can do this with "plrdistwithin" condition.

Then to execute the destroy script, you can use the "rundefaultfpi" action.


Good luck learning. Might I suggest a tutorial to help you out? You can find tons in Nickydude's Guide.


The one and only,
~PlystirE~

Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 19th Apr 2008 07:43
I read one of the tutorials and got a scirpt to work, thanks for helping me.

Login to post a reply

Server time is: 2024-11-24 07:37:08
Your offset time is: 2024-11-24 07:37:08