PointClickEngine::Characters::AI::FollowBehavior
Inherits YAML::Serializable < PointClickEngine::Characters::AI::NPCBehavior < Reference < Object
Follow behavior - follows a target character
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(target : Character | Nil, follow_distance : Float32 = 100.0)
Sourcenew
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
after_yaml_deserialize(ctx : YAML::ParseContext, npc : NPC)
Sourcefollow_distance
Sourcefollow_distance=(follow_distance : Float32)
Sourcefollow_speed
Sourcefollow_speed=(follow_speed : Float32)
Sourcetarget
Sourcetarget=(target : Character | Nil)
Sourcetarget_name
Sourcetarget_name=(target_name : String | Nil)
Sourceupdate(npc : NPC, dt : Float32)
Source