Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 67 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Script runtime error SP map
gunrock
General Member
Since: Oct 30, 2004
Posts: 172
Last: Oct 3, 2018
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Friday, Sep. 22, 2017 01:51 am
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");
}


}





Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Saturday, Sep. 23, 2017 05:29 pm
Ambient stop is needs a number in the brackets. Not a text. The Ambient you played before will automatically stop when you call
ambientstop();
if you but nothing in the brackets it will stop immediately.
If you put a float number then it will fade out in the time of that number.
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»