# Jedi Knight Missions Cog Script # # PROJ_RAIL.COG # symbols message touched end #---------------------------------------------------------------------------- code touched: victim = GetSourceRef(); bullet = GetSenderRef(); dir = GetThingLVec(bullet); vec = VectorScale(VectorSub(GetThingPos(victim), GetThingPos(bullet)), -1); bullet = FireProjectile(victim, GetThingTemplate(bullet), -1, -1, vec, '0 0 0', 0, 0, 0, 0); SetThingVel(bullet, VectorScale(dir, 10)); SetThingLook(bullet, dir); return; end