一.module_scene_prop.py添加地雷
在resource目录下新增brf,导入地雷模型
module_scene.prop.py添加("god_mine", 0, "god_mine", "bo_god_mine",[]),
module_constant.py添加scene_prop_is_boom= 18
二.mission_templates.py添加按键触发器产生地雷
(0.0, 0, 1, [(key_is_down,key_h)],[
(init_position, pos3),
(init_position, pos4),
(get_player_agent_no, ":player_agent"),
(agent_get_position, pos3, ":player_agent"),
(position_move_y, pos3, 400),
(position_set_z_to_ground_level, pos3),
(set_spawn_position, pos3),
(spawn_scene_prop, "spr_god_mine"),
(scene_prop_set_slot, reg0, scene_prop_is_boom, 0),
]),
按键h:一秒后可在前方产生一颗地雷
三.mission_templates.py添加检测敌军触发器
(0.5, 0, 0, [], [