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 / is there any add ammo actions?

Author
Message
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 18th Feb 2012 14:57
hey all,
im doing a new script for a sci-fi pack,
but i want to know if there is a script action for adding ammo to the player.
any help please?

''Make sure your hands are clean before you point the finger''
AMF Productions Founder
14
Years of Service
User Offline
Joined: 11th Oct 2010
Location: Toronto
Posted: 18th Feb 2012 21:45
I think you might beable to take all of the ammo scripts from the scriptbank, and merge all the gun ammo codes into one fpi. Try that, that might work

Good Luck,
AMF Productions

Check out my new Community Pack (SCIFI Pack)! http://forum.thegamecreators.com/?m=forum_view&t=194396&b=24&p=0
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 19th Feb 2012 10:01
what i want to do is, when near a character text displays saying "here take some ammo" and a clip of ammo added to the gun.

I don't think i can be able to do this though


Quote: "I think you might beable to take all of the ammo scripts from the scriptbank, and merge all the gun ammo codes into one fpi. Try that, that might work"

i will try that also.

''Make sure your hands are clean before you point the finger''
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 19th Feb 2012 14:15
@gozzy: you should be able to do that. Take a look at one of the existing ammo scripts and see how it adds ammo to the player. Then, just add those few lines to your custom script so that when the character says "Here, take this" it gets added. Shouldn't be too difficult, I think.

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 19th Feb 2012 15:09 Edited at: 19th Feb 2012 15:11
Didn't think of that before thank you

but which part of it?


''Make sure your hands are clean before you point the finger''
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 19th Feb 2012 21:51
I'd say....place an ammo pack right underneath where the player will be standing when he talks to the entity. after talking to him, spawn the ammo pack (obviously, don't spawn it right away). Then it will get picked up automatically as he's standing on it.

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 20th Feb 2012 09:34
that is a good idea, will do that

''Make sure your hands are clean before you point the finger''

Login to post a reply

Server time is: 2024-11-24 01:56:36
Your offset time is: 2024-11-24 01:56:36