air strike error!(help)

broken avatar :(
Created 2621 days ago
by KDXDARK
0 Members and 1 Guest are viewing this topic.
1,704 views
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: arSan Cristobal
Date Registered: 21 August 2011
Last active: 12 hours ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
My Contact & Social Links
More
Personal Quote
Time of revenge
Signature
"Nada sale como quiero, es por eso que renuncie a muchas cosas en mi vida, entre ellas, vivir"
×
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
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
KDXDARK's Contact & Social LinksKDXDARKKDXDARKKDXDARKKDXDARK
i got a error in thye bomb_run.gsc line 46, somebody can help me?
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//|||| 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: 2202 days ago
Posts
105
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
i love zombies
×
ZMBS DON GOONY's Groups
Community 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
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: 41 days ago
Posts
5,545
Respect
6,487Add +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.

//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//|||| 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);
}
}

 

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 Twitch
Loading ...