
Posts
517
Respect
161Add +1
Forum Rank
Zombie Enslaver
Primary Group
Scripter
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
flashlight()
{
level._effect ["flashlight"] = loadFX ("env/light/fx_lights_lantern_on"); //this may need to go in building horror.gsc in the fx section
trigger = getent ("flashlight" , "targetname");
trigger SetCursorHint( "HINT_NOICON" );
trigger SetHintString( "Press &&1 to pick up flashlight." );
trigger waittill ("trigger", user); //
players = get_players();
for(i = 0; i < players.size; i++)
{
// Places the FX roughly at half of the player's height
ent = Spawn("script_model", players.origin + (32, 0, 0));
ent SetModel("tag_origin");
playFxOnTag(level._effect["fx_lights_lantern_on"], ent, "tag_origin");
ent LinkTo(players);
trigger delete();
}
}
//the endent LinkTo(players);for(i = 0;i<players.size;i++)
{
ent LinkTo(players[i]);
}
(32, 0, 0)players.origin[i]
playFxOnTag(level._effect["flashlight"], ent, "tag_origin");
players.origin[i]