Back to the Vavoom Forum Archives


Forum

Unlink/LinkToWorld functions

Sat, 09 Jun 2007 07:19:05

Crimson Wizard

What's the actual purpose of those functions? When do they have to be used? I met them many times (and used couple of times by intuition), they are usually called when moving an object by a long distance (teleporting), however they do not seem to be called when actor's self movement is calculated.
Sat, 09 Jun 2007 08:46:41

Janis Legzdinsh

They must be called when actors position (x and y) is changed. They are used to update actor's links in blockmap which will update actor's Subsector and Sector fields.
Sat, 09 Jun 2007 10:18:07

Crimson Wizard

Is it necessary to Unlink actor before his Origin will change, or one may only call LinkToWorld after it was changed?
Sun, 10 Jun 2007 14:23:05

Janis Legzdinsh

LinkToWorld will unlink it if it's still linked.

Back to the Vavoom Forum Archives