Scripts / Help with ammo name script

Author
Message
Super Masgamer
Audio Media Maker
6
Years of Service
User Offline
Joined: 2nd Dec 2018
Playing: Quad Damage
Posted: 9th May 2019 02:41
Hey, I'm having an issue where I would like the player to know which ammo they are picking up instead of just "collected ammo" this is my script which I basically used the default ammo script. Could anybody tell me what's wrong with my code because I can't get it to work at all?
Thanks for your help !



perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 9th May 2019 05:51
This should work.

ammo_name = {} - was not declared
function ammo_init_name(e,name) - was wrong _name missing
added double dots into the string field around the variable - ..ammo_name[e]..
added PromptDuration(text,v) so you get a chance to read the text after it is picked up. 2000 = 2 seconds, edit this to suit



Desktop: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz, Windows 10 Pro, 64-bit, 16 GB Ram, ASASUS Geforce TURBO GTX1080 8GB, 34" 21:9 2560x1080 Full HD UltraWide IPS Monitor

[RIP] Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
PT V9.0 3DMark=377, Passmark=1222.
Super Masgamer
Audio Media Maker
6
Years of Service
User Offline
Joined: 2nd Dec 2018
Playing: Quad Damage
Posted: 9th May 2019 20:11
Thank you so much! it works

Login to post a reply

Server time is: 2024-12-22 14:10:12
Your offset time is: 2024-12-22 14:10:12