DeepRedCee
Recruit

Hey there,
Basically I'm making a throwing item which spawns a barricade (a destructible scene prop) at the position of where it lands. This is my code so far however, it (a) does not spawn the correct scene prop (at the moment a test target dummy) and (b) seems to spawn it in a random location on the map (in the same place, most likely at 0,0,0 coords)
Basically I'm making a throwing item which spawns a barricade (a destructible scene prop) at the position of where it lands. This is my code so far however, it (a) does not spawn the correct scene prop (at the moment a test target dummy) and (b) seems to spawn it in a random location on the map (in the same place, most likely at 0,0,0 coords)
插入代码块:
["targetdummy", "Target Dummy", [("plank1",0)], itp_type_thrown|itp_merchandise|itp_primary ,itcf_throw_stone, 1 , weight(1)|difficulty(0)|spd_rtng(99) | shoot_speed(23) | thrust_damage(28 , blunt)|max_ammo(1)|weapon_length(23),imodbits_none,
[(ti_on_missile_hit, [
(store_trigger_param_1,":thrower"),
(try_begin),
(set_spawn_position,reg1),
(spawn_scene_prop,"spr_dummy_a_undestructable"),
(try_end),
#Graphics and sound effects below
(play_sound_at_position,"snd_pistol_shot",pos1),
(try_end)
])]],

