UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

air strike error!(help)

broken avatar :(
Created 14 years ago
by KDXDARK
0 Members and 1 Guest are viewing this topic.
3,016 views
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: ar
Date Registered: 21 August 2011
Last active: 3 days ago
Posts
1,323
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
Personal Quote
This game isn't meant to be played
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Mapper Has released one or more maps to the UGX-Mods community.
KDXDARK's Contact & Social Links
i got a error in thye bomb_run.gsc line 46, somebody can help me?
Code Snippet
Plaintext
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//|||| Name   : bomb_run.gsc
//|||| Info     : script for bombing runs
//|||| Site     : [url=http://www.ugx-mods.com]www.ugx-mods.com[/url]
//|||| Author : [UGX] treminaor
//|||| Notes  : goes with Airstrike tutorial on UGX-Wiki
//|||| To-Do : n/a
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;

bomb_run_trig()
{
trigger = getEnt("bomb_run_trig","targetname");
cost = 3500;
player = undefined;
trigger setCursorHint("HINT_NOICON");
trigger setHintString("Press &&1 to call an airstrike [Cost: "+cost+"]");
while(1)
{
trigger waittill("trigger",player);
if(player.score >= cost)
{
player maps\_zombiemode_score::minus_to_player_score( self.zombie_cost );
trigger setHintString("Bombing Run in Progress. Wait 1 minute");
bomb_run();
wait 60;
}
else
player playsound("no_cha_ching");
}
}

bomb_run()
{
    plane = getEnt("plane","targetname");
    plane_path = GetVehicleNode("plane_path_start","targetname");
    plane AttachPath( plane_path );
    plane thread maps\_vehicle::vehicle_paths(plane_path);
    maps\_vehicle::vehicle_init(plane);
    plane thread corsair_spin_prop();

    plane StartPath( plane_path );
    wait 2;
for(i = 0; i < players.size; i++)
players[i] playsound("ambient_corsair");

    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
}

corsair_spin_prop()
{
self endon("hide_prop");
self endon("death");

while(1)
{
PlayFXOnTag(level._effect["corsair_prop_full"], self, "tag_prop");

wait(0.1);
}
}
broken avatar :(
×
broken avatar :(
Date Registered: 14 March 2012
Last active: 13 years ago
Posts
105
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
i love zombies
×
ZMBS DON GOONY's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
ZMBS DON GOONY's Contact & Social LinksZMBS_DON_GOONY
Code Snippet
Plaintext
for(i = 0; i < players.size; i++)
    players[i] playsound("ambient_corsair");

maybe thats causing it idk
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Use this new file, I'll update the wiki.

Code Snippet
Plaintext
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//|||| Name   : bomb_run.gsc
//|||| Info     : script for bombing runs
//|||| Site     : [url=http://www.ugx-mods.com]www.ugx-mods.com[/url]
//|||| Author : [UGX] treminaor
//|||| Notes  : goes with Airstrike tutorial on UGX-Wiki
//|||| To-Do : n/a
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;

bomb_run_trig()
{
trigger = getEnt("bomb_run_trig","targetname");
cost = 3500;
player = undefined;
trigger setCursorHint("HINT_NOICON");
trigger setHintString("Press &&1 to call an airstrike [Cost: "+cost+"]");
while(1)
{
trigger waittill("trigger",player);
if(player.score >= cost)
{
player maps\_zombiemode_score::minus_to_player_score( self.zombie_cost );
trigger setHintString("Bombing Run in Progress. Wait 1 minute");
bomb_run();
wait 60;
}
else
player playsound("no_cha_ching");
}
}

bomb_run()
{
    plane = getEnt("plane","targetname");
    plane_path = GetVehicleNode("plane_path_start","targetname");
    plane AttachPath( plane_path );
    plane thread maps\_vehicle::vehicle_paths(plane_path);
    maps\_vehicle::vehicle_init(plane);
    plane thread corsair_spin_prop();

    plane StartPath( plane_path );
    wait 2;
players = getplayers();
    for(i=0;i<players.size;i++)
players[i] playsound("ambient_corsair");

    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
    wait 0.5;
    plane notify("drop_bombs");
}

corsair_spin_prop()
{
self endon("hide_prop");
self endon("death");

while(1)
{
PlayFXOnTag(level._effect["corsair_prop_full"], self, "tag_prop");

wait(0.1);
}
}

 
Loading ...