0


I made this script, I didn't tested it though, if you do test it, report back and if there's errors, I'll fix them, but it should work.
UPDATED BETTER VERSION: It will fire 3 times then stop.
Code:rainHell() { //self hideMenu(); napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 ); self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" ); self.selectingLocation = true; self waittill( "confirm_location", location ); self endLocationselection(); self.selectingLocation = false; //self showMenu(); self thread maps\mp\_popups::DisplayTeamMessageToAll( "Hellfire Inbound", self ); wait 5; for( i=1; i<=3; i++ ) { MagicBullet( "strela_mp", location +(10, 0, 500), location, self ); wait 0.01; MagicBullet( "rpg_mp", location +(15, 0, 500), location, self ); wait 0.01; MagicBullet( "m72_law_mp", location +(10, 0, 500), location, self ); wait 0.01; MagicBullet( "strela_mp", location +(10, 0, 500), location, self ); wait 0.01; MagicBullet( "m202_flash_mp", location +(15, 0, 500), location, self ); wait 0.01; MagicBullet( "strela_mp", location +(10, 0, 400), location, self ); wait 0.01; MagicBullet( "rpg_mp", location +(6, 0, 500), location, self ); wait 3; } }
Last edited by Kylaii; 06-14-2011 at 05:19 PM.
no matter what i do where i put it i get unknown function
yah but where do we put this lol...do we have to like make a new .gsc file or something??? cause i can't put it under napalm
donnt really know how to script but from the looks of it, it needs a few more "enters" in it....but idk
i tried adding as a selectable option in the menu
Yeah, you didn't script it right, i don't think.
Just by reading through this code it seems incorrect, I can have a go at changing it? But knowing me il probably FCUKKED it.
Sent from my HD2
Its probably because I'm using the REALLY old mod menu, I didn't want to update the menu so, thats all i can do.
EDIT: Fixed it by removing self hideMenu(); and self showMenu(); maybe thats whats causing it.
Last edited by Kylaii; 06-12-2011 at 02:14 PM.
Just a guess, shouldn't MagicBullet be defined somewhere first? or is that already in the game?
Bookmarks