annoying error
Moderator: Moderators
-
HeavenBound
- Colour Sergeant
- Posts: 85
- Joined: Thu Sep 11, 2008 12:55 am
-
HeavenBound
- Colour Sergeant
- Posts: 85
- Joined: Thu Sep 11, 2008 12:55 am
-
HeavenBound
- Colour Sergeant
- Posts: 85
- Joined: Thu Sep 11, 2008 12:55 am
exec global/auto.scr
exec global/friendly.scr
level waittill prespawn
level waittill spawn
//----------------------------------------------------------------------------
main:
//----------------------------------------------------------------------------
thread FriendInit //or waitthread FriendInit
end
//----------------------------------------------------------------------------
FriendInit:
//----------------------------------------------------------------------------
level.friendly1.targetname = friend1
$friend1.destination = $player
// Sets the type of friendly soldier
$friend1.friendtype = 1
// stagger how far away they keep from their destinations
$friend1.distance = 175
// setup the friendlies to follow the player...
$friend1 thread global/friendly.scr::friendlythink
end
exec global/friendly.scr
level waittill prespawn
level waittill spawn
//----------------------------------------------------------------------------
main:
//----------------------------------------------------------------------------
thread FriendInit //or waitthread FriendInit
end
//----------------------------------------------------------------------------
FriendInit:
//----------------------------------------------------------------------------
level.friendly1.targetname = friend1
$friend1.destination = $player
// Sets the type of friendly soldier
$friend1.friendtype = 1
// stagger how far away they keep from their destinations
$friend1.distance = 175
// setup the friendlies to follow the player...
$friend1 thread global/friendly.scr::friendlythink
end
I was having a similar problem untill i figured this out.
insert $friend1.waittime = 0.1 BEFORE $friend1 thread global/friendly.scr::friendlythink. additionally, and this is just from examining the stock maps, move the destination friendtype and distance commmands to AFTER $friend1 thread global/friendly.scr::friendlythink. hope this helps.
insert $friend1.waittime = 0.1 BEFORE $friend1 thread global/friendly.scr::friendlythink. additionally, and this is just from examining the stock maps, move the destination friendtype and distance commmands to AFTER $friend1 thread global/friendly.scr::friendlythink. hope this helps.