HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Really annoying lock glitch...

09-29-2007, 11:44 PM#1
Monky-Master
This is the camera code for my camera system. Works pretty good, but there's a flaw in it...After a while, the units you are controlling gets 'locked.' What that means is, the unit doesn't move anymore. I'd appreciate it if anyone could find what's wrong. =/.

The actual map is attached.

Also, this 'lock' glitch only occurs in Multi-Playered settings.

Trigger:
Camera
Collapse Events
Time - Every 0.10 seconds of game time
Conditions
Collapse Actions
Custom script: set bj_wantDestroyGroup=true // Yes, I know, this thing has no point in this trigger.
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Set Unit_Pan_Location[(Player number of (Picked player))] = (Position of Unit_Camera_Lock[(Player number of (Picked player))])
Camera - Pan camera for Player_Camera_Bond[(Player number of (Picked player))] to Unit_Pan_Location[(Player number of (Picked player))] over 1.00 seconds
Camera - Set (Picked player)'s camera Rotation to (Facing of Unit_Camera_Lock[(Player number of (Picked player))]) over 1.00 seconds
Camera - Set Player_Camera_Bond[(Player number of (Picked player))]'s camera Distance to target to 600.00 over 0.40 seconds
Camera - Set Player_Camera_Bond[(Player number of (Picked player))]'s camera Angle of attack to 320.00 over 0.40 seconds
Camera - Set Player_Camera_Bond[(Player number of (Picked player))]'s camera Field of view to 200.00 over 0.40 seconds
Camera - Set Player_Camera_Bond[(Player number of (Picked player))]'s camera Height Offset to 200.00 over 0.40 seconds
Custom script: call RemoveLocation(udg_Unit_Pan_Location[GetConvertedPlayerId(GetEnumPlayer())])
Attached Files
File type: w3xCamera System.w3x (26.2 KB)
09-30-2007, 07:24 AM#2
Pyrogasm
The problem is evidently this:
Trigger:
Custom script: set bj_wantDestroyGroup=true // Yes, I know, this thing has no point in this trigger.

It's probably destroying a unit-group that holds paused units somewhere down the line.