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

Bad syntax help!

broken avatar :(
Created 7 years ago
by CodingIskeyy
0 Members and 1 Guest are viewing this topic.
1,226 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 20 March 2016
Last active: 7 years ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
CodingIskeyy's Groups
CodingIskeyy's Contact & Social Links
I was trying to add fire fx to my map and now I have bad syntax when I compile my map. Error is on line 139.
Im pretty much a total noob when it comes to scripting btw.


Code Snippet
Plaintext
 ZOMBIE MODE
----------------------*/
[[level.DLC3.weapons]]();
[[level.DLC3.powerUps]]();
maps\ugx_weather_handle::init();

maps\_zombiemode::main();

fx_spots = getstructarray("fx_spot","targertname");

for( i = 0 ; i < fx_spots.size ; i++)
fx_spots [ i ] runfx();

model = spawn("script_model", GetPlayers()[0].origin);
model Linkto(GetPlayers()[0]);

thread maps\ugx_weather_handle::think();

/*--------------------
FUNCTION CALLS - POST _Load
----------------------*/
level.zone_manager_init_func = ::dlc3_zone_init;
level thread DLC3_threadCalls2();


runfx()
(line 139){
self.fx = PlayFx(level._effect[self.script_string], self.origin);
}


dlc3_zone_init()
{
/*
=============
///ScriptDocBegin
"Name: add_adjacent_zone( <zone_1>, <zone_2>, <flag>, <one_way> )"
"Summary: Sets up adjacent zones."
"MandatoryArg: <zone_1>: Name of first Info_Volume"
"MandatoryArg: <zone_2>: Name of second Info_Volume"
"MandatoryArg: <flag>: Flag to be set to initiate zones"
"OptionalArg: <one_way>: Make <zone_1> adjacent to <zone_2>. Defaults to false."
"Example: add_adjacent_zone( "receiver_zone", "outside_east_zone", "enter_outside_east" );"
///ScriptDocEnd
=============
*/

// Outside East Door
//add_adjacent_zone( "receiver_zone", "outside_east_zone", "enter_outside_east" );
}

preCacheMyFX()
{
// LEVEL SPECIFIC - FEEL FREE TO REMOVE/EDIT

// level._effect["snow_thick"] = LoadFx ( "env/weather/fx_snow_blizzard_intense" );
level._effect["campfire_small"] = LoadFx ( "env/fire/fx_fire_campfire_smolder" );

}
Last Edit: April 18, 2017, 11:22:54 pm by sevengpluke
Marked as best answer by CodingIskeyy 7 years ago
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
You put the runfx function inside another function.
Paste it at the very bottom of that script.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 20 March 2016
Last active: 7 years ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
CodingIskeyy's Groups
CodingIskeyy's Contact & Social Links
So do I have to put a } before the runfx to close function above it?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 20 March 2016
Last active: 7 years ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
CodingIskeyy's Groups
CodingIskeyy's Contact & Social Links
Well that worked. Thank you so much!

 
Loading ...