骑砍战团MOD开发(39)-RTS塔防保卫卡拉迪亚大陆

骑砍1战团mod开发-RTS塔防保卫卡拉迪亚大陆_哔哩哔哩bilibili_骑马与砍杀https://www.bilibili.com/video/BV1hw411E7bP/骑砍战团MOD开发(28)-骑砍联盟之RTS大规模军团竞技-CSDN博客文章浏览阅读369次,点赞11次,收藏7次。【代码】骑砍战团MOD开发(28)-骑砍联盟之RTS大规模军团竞技。https://blog.csdn.net/qq_35829452/article/details/135305251

复制代码
     #mine press ctrl+lbtn
     (0, 0.1, 0, [(key_is_down, key_left_control),(key_clicked, key_left_mouse_button),(eq, "$g_RTS_battle_mode", 1)],[
        (init_position, pos3),
        (call_script, "script_RTS_mouse_pos_to_3d_pos"),
        (set_spawn_position, pos3),
        (spawn_scene_prop, "spr_RTS_mine_flag"),
        (spawn_scene_prop, "spr_RTS_mine"),
        (scene_prop_set_slot, reg0, scene_prop_is_boom, 0),
     ]),
     (0.5, 0, 0, [], [
        (get_player_agent_no, ":player_agent"),
        (try_for_prop_instances, ":instance_no", "spr_RTS_mine"),
          (try_begin),
             (scene_prop_slot_eq, ":instance_no", scene_prop_is_boom, 0),
             (init_position, pos1),
             (prop_instance_get_position, pos1, ":instance_no"),
		     (set_fixed_point_multiplier, 100),
             (assign, ":is_enemy_around", 0),
             (try_for_agents, ":agent_no", pos1, 100),
			   (try_begin),
			      (agent_is_alive, ":agent_no"),
                  (neg|agent_is_ally, ":agent_no"),
                  (agent_is_human, ":agent_no"),
			      (agent_deliver_damage_to_agent, ":player_agent", ":agent_no", 200, "itm_flintlock_pistol"),
				  (assign, ":is_enemy_around", 1),
			   (try_end),
             (try_end),
		     (try_begin),
			    (eq, ":is_enemy_around", 1),
			    (play_sound, "snd_god_mine_boom"),
			    (scene_prop_fade_out, ":instance_no", 1),
                (prop_instance_get_position, pos1, ":instance_no"),
			    (particle_system_burst, "psys_dummy_smoke_big", pos1, 30),
			    (scene_prop_set_slot, ":instance_no", scene_prop_is_boom, 1),
		     (try_end),
          (try_end),
        (try_end),
     ]),
     #tower press alt+lbtn
     (0, 0.1, 0, [(key_is_down, key_left_alt),(key_clicked, key_left_mouse_button),(eq, "$g_RTS_battle_mode", 1)],[
        (init_position, pos3),
        (call_script, "script_RTS_mouse_pos_to_3d_pos"),
        (set_spawn_position, pos3),
        (spawn_scene_prop, "spr_RTS_tower"),
        
        (position_move_z, pos3, 600),
        (set_spawn_position, pos3),
        (try_for_range, ":index", 0, 5),
          (spawn_agent, "trp_sarranid_master_archer"),
          (agent_set_team, reg0, 1),
        (try_end),
        (position_move_z, pos3, -600),
        (position_move_y, pos3, 950),
        (position_rotate_x, pos3, 60),
        (set_spawn_position, pos3),
        (spawn_scene_prop, "spr_siege_ladder_10m"),
     ]),
相关推荐
技术小甜甜1 天前
【Blender Texture】【游戏开发】高质感 Blender 4K 材质资源推荐合集 —— 提升场景真实感与美术表现力
blender·游戏开发·材质·texture
Thomas游戏开发1 天前
Unity3D TextMeshPro终极使用指南
前端·unity3d·游戏开发
Thomas游戏开发2 天前
Unity3D 逻辑代码性能优化策略
前端框架·unity3d·游戏开发
Thomas游戏开发3 天前
Unity3D HUD高性能优化方案
前端框架·unity3d·游戏开发
陈哥聊测试4 天前
游戏公司如何同时管好上百个游戏项目?
游戏·程序员·游戏开发
一名用户5 天前
unity随机生成未知符号教程
c#·unity3d·游戏开发
Be_Somebody10 天前
计算机图形学——Games101深度解析_第二章
游戏开发·计算机图形学·games101
GameTomato10 天前
【IOS】【OC】【应用内打印功能的实现】如何在APP内实现打印功能,连接本地打印机,把想要打印的界面打印成图片
macos·ios·objective-c·xcode·游戏开发·cocos2d
Be_Somebody11 天前
计算机图形学——Games101深度解析_第一章
游戏开发·计算机图形学·games101
飞起的猪22 天前
【虚幻引擎】UE5独立游戏开发全流程(商业级架构)
ue5·游戏引擎·游戏开发·虚幻·独立开发·游戏设计·引擎架构