Garry's Mod

Garry's Mod

37 个评价
Random Entity Teleportation Location
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
2.035 KB
2024 年 6 月 9 日 上午 10:30
1 项改动说明 ( 查看 )

订阅以下载
Random Entity Teleportation Location

描述
Lua-Script that teleports any entity to a random location on the map where there is a navigation mesh. To teleport an entity there are console commands.

Console commands (for any players):

entity_tele_random — Teleports an entity that is targeted by the player's scope to a random location on the map where there is a navigation mesh.

entity_tele_random_by_class "" — This command teleports any entity by class name: prop_physics, npc_alyx, and, and etc. Including all entities present on the map.

entity_tele_random_by_name "" — This command teleports an entity to a random location on the map where there is a navigation mesh, but teleports by the entity's target name. If the entity has a target name set. For example, npc_alyx has a target name of Alyx, then this command teleports the entity by the value of Alyx. You must enter the command: entity_tele_random_by_name Alyx — in the console to teleport this entity.

The TargetName of any entity can be set via the console command: ent_setname "TargetName".

After teleporting the entity to a random location, the player who entered the command will see information in chat and console about the coordinates where the entity was teleported to.

If there is no navigation mesh on the map, you can create it yourself:

nav_generate — Generates a navigation mesh for the current map and saves it to disk.

nav_analyze — Analyzes, checks and resaves the navigation mesh file to disk in the map folder with the name of your map.
4 条留言
timox 2024 年 6 月 12 日 下午 5:48 
youre the best
Тотя 2024 年 6 月 9 日 下午 12:02 
how is this on most popular with 0 stars
BombChecker87 2024 年 6 月 9 日 上午 11:44 
This makes npc chases 1000x scarier, thanks!
Geroin 2024 年 6 月 9 日 上午 11:19 
Cool