Garry's Mod Wiki

Garry's Mod Wiki

  NPC:SetMovementSequence( number sequenceId )

Description

Sets the sequence the NPC navigation path uses for speed calculation. Doesn't seem to have any visible effect on NPC movement or actively playing sequence.

To be able to use this, first set NPC:SetIdealActivity to ACT_DO_NOT_DISTURB, set this to any sequence with root motion data and call Entity:SetSequence on your desired sequence. As long as your NPC's NPC:GetMovementSequence has root motion data, your NPC will move to navigation point even though your NPC's Entity:GetSequence doesn't have any motion.

Arguments

1 number sequenceId
The movement sequence index

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...