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

Script runtime error SP map

broken avatar :(
Created 7 years ago
by Gunrock12
0 Members and 1 Guest are viewing this topic.
970 views
broken avatar :(
×
broken avatar :(
Location: usIndiana, Indianapolis
Date Registered: 19 October 2014
Last active: 4 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Gunrock12's Groups
Gunrock12's Contact & Social Links
I have a script where i the player goes inside a building from the outside and the Ambient changes.
but once the player touches the trigger i get this error:

Error
script runtime error
[see console for details

type string is not a float

here is my script:


amb_set1()
{


amb_set1 = getent("amb_outside1", "targetname");
amb_set1 waittill("trigger", player);

while(1)
   {
   
    amb_set1 waittill("trigger", player);
    wait(1);
    iprintlnbold ("play out sound dude");
    AmbientStop("amb_chech_night1v3_lsrs");
    wait(1);


    AmbientPlay("bf_battle");
   }


}








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
I never used ambientplay or ambientstop so i cant say why your script isn't working but i always use music states and they are easy to setup and can be silenced in script or from triggers.

https://www.mediafire.com/download/snt0k8sy59lorrl

 
Loading ...