HELP ME!!!! PLEASE!!!
i made a small map and got 1 allied soldier to follow me, when i go into a room with a german in it it freezes and quits me out from the game and on the console it says this:
~~script error: cannot cast 'NIL' to float
wait self.waittime (global/friendly.scr, 1172)
~~script error: cannot cast 'NIL' to float
while (isalive self) (global/friendly.scr, 228)
***********************************
ERROR: Command Overflow. Possible infinite loop in thread.
***********************************
----- server shutdown -----
==== shutdown game ====
-----------------------------------
any help Sad
Scripting error!
Moderator: Moderators
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
sorry about that, its because i havent had a reply in a while and its bugging me that it wont work!
script:
exec global/auto.scr
level waittill prespawn
level waittill spawn
main:
thread FriendInit
end
FriendInit:
level.friendly1.targetname = friend1
level.friendly2.targetname = friend2
level.friendly3.targetname = friend3
$friend1.destination = $player
$friend2.destination = $player
$friend3.destination = $player
$friend1.friendtype = 1
$friend2.friendtype = 1
$friend3.friendtype = 1
$friend1.distance = 175
$friend2.distance = 225
$friend3.distance = 250
$friend1 thread global/friendly.scr::friendlythink
$friend2 thread global/friendly.scr::friendlythink
$friend3 thread global/friendly.scr::friendlythink
end
thanks

script:
exec global/auto.scr
level waittill prespawn
level waittill spawn
main:
thread FriendInit
end
FriendInit:
level.friendly1.targetname = friend1
level.friendly2.targetname = friend2
level.friendly3.targetname = friend3
$friend1.destination = $player
$friend2.destination = $player
$friend3.destination = $player
$friend1.friendtype = 1
$friend2.friendtype = 1
$friend3.friendtype = 1
$friend1.distance = 175
$friend2.distance = 225
$friend3.distance = 250
$friend1 thread global/friendly.scr::friendlythink
$friend2 thread global/friendly.scr::friendlythink
$friend3 thread global/friendly.scr::friendlythink
end
thanks
I think exec global/auto.scr includes that. I could be wrong though.
EDIT:
Yeah it does.
dude77, look on your other thread and look at my post, it may help.
EDIT:
Yeah it does.
main local.script:
if ( level.auto_script_run == 1 )
{
end
}
if ( local.script != NIL )
{
if ( level.script == NIL )
{
level.script = ("maps/" + local.script + ".scr")
}
}
exec global/loadout.scr
exec global/ai.scr
exec global/exploder.scr
exec global/turret.scr
level waittill prespawn
exec global/door_locked.scr
exec global/friendly.scr
exec global/ambient.scr local.script
exec global/bomber.scr
level.auto_script_run = 1
level waittill spawn
dude77, look on your other thread and look at my post, it may help.



