ThaneWulfgharn
Master Knight
Hi,I was trying this script:
but I noticed some issues I need help fixing:
1st: psys_white_orbs_1 spawns in the place where the player is teleported,but on a very narrow area(in 1 single point).How do I largen this area?
2nd:psys_orbing_glow_1 wont burst up in the air and fade like it should but remains binded on 1 point on the ground.
3rd:How to make the player teleport not in the indicated distance,but on the place where a random bolt falls?
["teleport", "Teleport", [("crossbow_c",0)], itp_type_crossbow |itp_merchandise|itp_primary|itp_two_handed|itp_cant_reload_on_horseback ,itcf_shoot_crossbow|itcf_carry_crossbow_back,
683 , weight(3.75)|difficulty(10)|spd_rtng(37) | shoot_speed(70) | thrust_damage(63 ,pierce)|max_ammo(100000),imodbits_crossbow,
[(ti_on_weapon_attack, [(assign,":distance",99999),(try_for_agents,":agent"),
(agent_is_alive,":agent"),
(agent_is_human,":agent"),
(agent_get_look_position, pos2, ":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",":distance"),
(assign,":chosen",":agent"),
(assign,":distance",":dist"),
(end_try),
(agent_get_look_position, pos2, ":chosen"),
(particle_system_burst, "psys_white_orbs_1", pos2, 5000),
(particle_system_burst, "psys_orbing_glow_1", pos2, 5000),
(position_move_y,pos2,5000),
(position_set_z_to_ground_level, pos2),
(particle_system_burst, "psys_white_orbs_1", pos2, 5000),
(particle_system_burst, "psys_orbing_glow_1", pos2, 5000),
(agent_set_position,":chosen",pos2),],)]],
683 , weight(3.75)|difficulty(10)|spd_rtng(37) | shoot_speed(70) | thrust_damage(63 ,pierce)|max_ammo(100000),imodbits_crossbow,
[(ti_on_weapon_attack, [(assign,":distance",99999),(try_for_agents,":agent"),
(agent_is_alive,":agent"),
(agent_is_human,":agent"),
(agent_get_look_position, pos2, ":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",":distance"),
(assign,":chosen",":agent"),
(assign,":distance",":dist"),
(end_try),
(agent_get_look_position, pos2, ":chosen"),
(particle_system_burst, "psys_white_orbs_1", pos2, 5000),
(particle_system_burst, "psys_orbing_glow_1", pos2, 5000),
(position_move_y,pos2,5000),
(position_set_z_to_ground_level, pos2),
(particle_system_burst, "psys_white_orbs_1", pos2, 5000),
(particle_system_burst, "psys_orbing_glow_1", pos2, 5000),
(agent_set_position,":chosen",pos2),],)]],
1st: psys_white_orbs_1 spawns in the place where the player is teleported,but on a very narrow area(in 1 single point).How do I largen this area?
2nd:psys_orbing_glow_1 wont burst up in the air and fade like it should but remains binded on 1 point on the ground.
3rd:How to make the player teleport not in the indicated distance,but on the place where a random bolt falls?