GSC reference › Built-in
CancelAIMove()
Built-in (engine)
Server
Vehicle Called on: vehicle
Tell the vehicle to stop moving towards its current goal position.
Signature
<vehicle> CancelAIMove()
Called on an entity: vehicle CancelAIMove(...)
Example (from Treyarch's docs)
eTank CancelAIMove()
Real uses in BO3's scripts
Called 36 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_quadrotor.gsc, line 813
self cancelaimove(); - scripts/zm/zm_siegebot_nikolai.gsc, line 732
self cancelaimove(); - scripts/zm/zm_stalingrad_dragon.gsc, line 4686
self cancelaimove(); - scripts/shared/ai/zombie_vortex.gsc, line 454
self cancelaimove(); - scripts/shared/vehicle_ai_shared.gsc, line 934
self cancelaimove();
Related built-ins
- PathMove()Moves the entire path for this vehicle to the specific origin and angles.
- PathMoveClear()Clears the moved path for this vehicle.
- MoveTo()Move this entity to the given point.
- ArrayRemoveValue()Remove a value from an array (may affect multiple indexes)
- MoveZ()Move this entity to the given world z value
- ArrayRemoveIndex()Remove a value from an array at a given index
- SetMoveSpeedScale()Sets the speed scale multiplier for the entity
- MoveY()Move this entity to the given world y value
- MoveX()Move this entity to the given world x value
- Target_Remove()Removes a target
- GetMoveDelta()Gets the move delta for the animation
- MoveOverTime()Set a hud element to move over time.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).