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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - karelkopp

use this
Code Snippet
Plaintext
callback::on_spawned( &on_player_spawned );

function on_player_spawned()
{
self endon("disconnect");
        weapon = GetWeapon("ray_gun");
        self GiveWeapon(weapon);
        self SwitchToWeapon(weapon);   
}

8 years ago
so you must give weapon after spawn not after connect i think there is your problem
8 years ago
its will be better to post here your complete script
8 years ago
thats we know but we are talking about mods not maps and when you create mod so there is no gsc file created automatically

Double Post Merge: September 29, 2016, 02:52:15 pm
so for now i found solution first you must add to zone file one gsc from original scripts like _load.gsc

Code Snippet
Plaintext
scriptparsetree,scripts/mp/_load.gsc

and same for your custom script now call your custom script from _load.gsc
8 years ago
i have same problem. I dont know how to load custom gsc from mod. Its will be possible for someone to make for us some example of mod with loading custom scripts?
Thanks in advance
8 years ago
Loading ...