swiftlys2/docs/api/releases/features/ai/

Entity Data

versions
Counter-Strike 2›CFuncMover

CFuncMover

entity data
designer name: func_mover
Members (44)
path_name:string
path_node_start:string
path_node_end:string
ignore_end_node:boolean
starts_moving:boolean
starts_in_reverse:boolean
starts_at_closest_point:boolean
starts_at_end:boolean
starts_following_closest_mover:boolean
starts_following_closest_mover_when_within_distance:float
starts_following_closest_mover_when_outside_distance:float
starts_following_closest_mover_strategy:int
time_to_reach_max_speed:float
distance_to_reach_max_speed:float
time_to_reach_zero_speed:float
distance_to_reach_zero_speed:float
disable_deceleration_to_stop:boolean
time_to_blend_to_new_orientation:float
start_forward_sound:time
loop_forward_sound:time
stop_forward_sound:time
start_reverse_sound:time
loop_reverse_sound:time
stop_reverse_sound:time
arrive_at_destination_sound:time
CreateMovableNavMesh:boolean
create_surface_graph:boolean
AllowMovableNavMeshDockingOnEntireEntity:boolean
orientation_match_entity:string
follow_entity:string
follow_other_mover_entity:string
follow_other_mover_distance:float
follow_other_mover_ratio:float
follow_other_mover_spring_strength:float
follow_other_mover_coupler_range:tick
follow_other_mover_constraint_priority:int
follow_other_mover_constraint:int
path_rebuild_strategy:int
speed:float
solid:float64
move_type:int
orientation_update:int
orientation_face_entity:string
offset_from_path:vector
Inputs (22)
GetModelScale() -> float
raw: GetModelScale
Get scale of entity's model.
SetModelScale(float) -> void
raw: Script_SetModelScale
Set scale of entity's model.
ScriptLookupAttachment(cstring) -> int
raw: ScriptLookupAttachment
Get the named attachment id.
GetAttachmentOrigin(int) -> position_vector
raw: ScriptGetAttachmentOrigin
Get the attachment id's origin vector.
GetAttachmentAngles(int) -> vector
raw: ScriptGetAttachmentAngles
Get the attachment id's angles as a p,y,r vector.
GetAttachmentForward(int) -> vector
raw: ScriptGetAttachmentForward
Get the attachment id's forward vector.
SetSize(vector, vector) -> void
raw: ScriptSetSize
SetModel(cstring) -> void
raw: ScriptSetModel
GetRenderAlpha() -> int
raw: ScriptGetRenderAlpha
GetRenderAlpha(): Get the alpha modulation of this entity.
SetRenderAlpha(int) -> void
raw: ScriptSetRenderAlpha
SetRenderAlpha( int ): Set the alpha modulation of this entity.
SetRenderMode(int) -> void
raw: ScriptSetRenderMode
SetRenderMode( int ): Sets the render mode of the entity.
SetRenderColor(int, int, int) -> void
raw: ScriptSetRenderColor
SetRenderColor( r, g, b ): Sets the render color of the entity.
GetRenderColor() -> vector
raw: ScriptGetRenderColor
GetRenderColor(): Get the render color of the entity.
SetMaterialGroup(cstring) -> void
raw: ScriptSetMaterialGroup
SetMaterialGroup( string ): Set the material group of this entity.
SetMaterialGroupHash(uint32) -> void
raw: ScriptSetMaterialGroupHash
SetMaterialGroupHash( uint32 ): Set the material group hash of this entity.
GetMaterialGroupHash() -> uint32
raw: ScriptGetMaterialGroupHash
GetMaterialGroupHash(): Get the material group hash of this entity.
SetSingleMeshGroup(cstring) -> void
raw: ScriptSetSingleMeshGroup
SetSingleMeshGroup( string ): Set a single mesh group for this entity.
SetMaterialGroupMask(uint64) -> void
raw: ScriptSetMeshGroupMask
SetMaterialGroupMask( uint64 ): Set the mesh group mask of this entity.
GetMaterialGroupMask() -> uint64
raw: ScriptGetMeshGroupMask
GetMaterialGroupMask(): Get the mesh group mask of this entity.
SetBodygroupByName(cstring, int) -> void
raw: ScriptSetBodygroupByName
Sets a bodygroup by name.
SetBodygroup(int, int) -> void
raw: Script_SetBodygroup
Sets a bodygroup.
SetSkin(int) -> void
raw: Script_SetSkin
Set skin (int).
Outputs (7)
OnMovementEnd
OnLerpToPositionComplete
OnStart
OnStartForward
OnStartReverse
OnStop
OnStopped